Changeset 170204 in webkit


Ignore:
Timestamp:
Jun 20, 2014 2:00:53 PM (10 years ago)
Author:
Simon Fraser
Message:

Always commit the scrolling tree when we flush layers
https://bugs.webkit.org/show_bug.cgi?id=134115

Reviewed by Beth Dakin.

The scrolling state tree contains bare pointers to GraphicsLayers, which get
converted to CALayers at commit time. To avoid a window of time where those
GraphicsLayer pointers go stale, commit the scrolling tree whenever we flush the
compositing layer tree.

  • WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:

(WebKit::TiledCoreAnimationDrawingArea::flushLayers):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r170198 r170204  
     12014-06-20  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Always commit the scrolling tree when we flush layers
     4        https://bugs.webkit.org/show_bug.cgi?id=134115
     5
     6        Reviewed by Beth Dakin.
     7       
     8        The scrolling state tree contains bare pointers to GraphicsLayers, which get
     9        converted to CALayers at commit time. To avoid a window of time where those
     10        GraphicsLayer pointers go stale, commit the scrolling tree whenever we flush the
     11        compositing layer tree.
     12
     13        * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
     14        (WebKit::TiledCoreAnimationDrawingArea::flushLayers):
     15
    1162014-06-19  Simon Fraser  <simon.fraser@apple.com>
    217
  • trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm

    r169576 r170204  
    281281
    282282    bool returnValue = m_webPage->corePage()->mainFrame().view()->flushCompositingStateIncludingSubframes();
     283    m_webPage->corePage()->scrollingCoordinator()->commitTreeStateIfNeeded();
    283284
    284285    // If we have an active transient zoom, we want the zoom to win over any changes
Note: See TracChangeset for help on using the changeset viewer.