⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 240374 in webkit


Ignore:
Timestamp:
Jan 23, 2019, 5:21:01 PM (8 years ago)
Author:
Alan Coon
Message:

Cherry-pick r240016. rdar://problem/47458249

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).

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@240016 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-607-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-607-branch/Source/WebKit/ChangeLog

    r240287 r240374  
     12019-01-23  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r240016. rdar://problem/47458249
     4
     5    Frequent null-deref under TiledCoreAnimationDrawingArea::scaleViewToFitDocumentIfNeeded()
     6    https://bugs.webkit.org/show_bug.cgi?id=193468
     7    <rdar://problem/38645869>
     8   
     9    Reviewed by Beth Dakin.
     10   
     11    * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
     12    (WebKit::TiledCoreAnimationDrawingArea::scaleViewToFitDocumentIfNeeded):
     13    I'm not sure why this got *worse*, but we should null-check RenderView.
     14    It's OK to bail from scaleViewToFitDocumentIfNeeded, we'll re-do it
     15    the next time we paint (which will surely happen if we gain a RenderView).
     16   
     17   
     18    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240016 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     19
     20    2019-01-15  Tim Horton  <timothy_horton@apple.com>
     21
     22            Frequent null-deref under TiledCoreAnimationDrawingArea::scaleViewToFitDocumentIfNeeded()
     23            https://bugs.webkit.org/show_bug.cgi?id=193468
     24            <rdar://problem/38645869>
     25
     26            Reviewed by Beth Dakin.
     27
     28            * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
     29            (WebKit::TiledCoreAnimationDrawingArea::scaleViewToFitDocumentIfNeeded):
     30            I'm not sure why this got *worse*, but we should null-check RenderView.
     31            It's OK to bail from scaleViewToFitDocumentIfNeeded, we'll re-do it
     32            the next time we paint (which will surely happen if we gain a RenderView).
     33
    1342019-01-22  Alan Coon  <alancoon@apple.com>
    235
  • branches/safari-607-branch/Source/WebKit/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm

    r240286 r240374  
    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.