Changeset 240016 in webkit


Ignore:
Timestamp:
Jan 15, 2019 3:55:36 PM (5 years ago)
Author:
timothy_horton@apple.com
Message:

Frequent null-deref under TiledCoreAnimationDrawingArea::scaleViewToFitDocumentIfNeeded()
https://bugs.webkit.org/show_bug.cgi?id=193468
<rdar://problem/38645869>

Reviewed by Beth Dakin.

  • WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:

(WebKit::TiledCoreAnimationDrawingArea::scaleViewToFitDocumentIfNeeded):
I'm not sure why this got *worse*, but we should null-check RenderView.
It's OK to bail from scaleViewToFitDocumentIfNeeded, we'll re-do it
the next time we paint (which will surely happen if we gain a RenderView).

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r240015 r240016  
     12019-01-15  Tim Horton  <timothy_horton@apple.com>
     2
     3        Frequent null-deref under TiledCoreAnimationDrawingArea::scaleViewToFitDocumentIfNeeded()
     4        https://bugs.webkit.org/show_bug.cgi?id=193468
     5        <rdar://problem/38645869>
     6
     7        Reviewed by Beth Dakin.
     8
     9        * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
     10        (WebKit::TiledCoreAnimationDrawingArea::scaleViewToFitDocumentIfNeeded):
     11        I'm not sure why this got *worse*, but we should null-check RenderView.
     12        It's OK to bail from scaleViewToFitDocumentIfNeeded, we'll re-do it
     13        the next time we paint (which will surely happen if we gain a RenderView).
     14
    1152019-01-15  Chris Dumez  <cdumez@apple.com>
    216
  • trunk/Source/WebKit/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm

    r240015 r240016  
    313313        return;
    314314
     315    if (!m_webPage.mainFrameView()->renderView())
     316        return;
     317
    315318    LOG(Resize, "TiledCoreAnimationDrawingArea %p scaleViewToFitDocumentIfNeeded", this);
    316319    m_webPage.layoutIfNeeded();
Note: See TracChangeset for help on using the changeset viewer.