Changeset 151873 in webkit


Ignore:
Timestamp:
Jun 21, 2013 6:10:24 PM (11 years ago)
Author:
Simon Fraser
Message:

Occasional crash swiping between pages
https://bugs.webkit.org/show_bug.cgi?id=117902

Reviewed by Beth Dakin.

m_scrollingStateTree->rootStateNode() can be null when quickly swiping between pages,
so check this in ScrollingCoordinatorMac::commitTreeState().

  • page/scrolling/mac/ScrollingCoordinatorMac.mm:

(WebCore::ScrollingCoordinatorMac::commitTreeState):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r151868 r151873  
     12013-06-21  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Occasional crash swiping between pages
     4        https://bugs.webkit.org/show_bug.cgi?id=117902
     5
     6        Reviewed by Beth Dakin.
     7
     8        m_scrollingStateTree->rootStateNode() can be null when quickly swiping between pages,
     9        so check this in ScrollingCoordinatorMac::commitTreeState().
     10
     11        * page/scrolling/mac/ScrollingCoordinatorMac.mm:
     12        (WebCore::ScrollingCoordinatorMac::commitTreeState):
     13
    1142013-06-21  Brent Fulgham  <bfulgham@apple.com>
    215
  • trunk/Source/WebCore/page/scrolling/mac/ScrollingCoordinatorMac.mm

    r151581 r151873  
    443443    if (shouldUpdateScrollLayerPositionOnMainThread())
    444444        indicatorMode = MainThreadScrollingBecauseOfStyleIndication;
    445     else if (m_scrollingStateTree->rootStateNode()->wheelEventHandlerCount())
     445    else if (m_scrollingStateTree->rootStateNode() && m_scrollingStateTree->rootStateNode()->wheelEventHandlerCount())
    446446        indicatorMode =  MainThreadScrollingBecauseOfEventHandlersIndication;
    447447    else
Note: See TracChangeset for help on using the changeset viewer.