Changeset 108248 in webkit


Ignore:
Timestamp:
Feb 20, 2012, 9:24:19 AM (14 years ago)
Author:
andersca@apple.com
Message:

Stop the committer timer when the page is destroyed
https://bugs.webkit.org/show_bug.cgi?id=78907

Reviewed by Adam Roben.

We don't want the committer timer to fire after the scrolling tree has been invalidated,
so stop the committer timer to prevent it from firing and trying to access the scrolling tree.

  • page/scrolling/ScrollingCoordinator.cpp:

(WebCore::ScrollingCoordinator::pageDestroyed):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r108247 r108248  
     12012-02-17  Anders Carlsson  <andersca@apple.com>
     2
     3        Stop the committer timer when the page is destroyed
     4        https://bugs.webkit.org/show_bug.cgi?id=78907
     5
     6        Reviewed by Adam Roben.
     7
     8        We don't want the committer timer to fire after the scrolling tree has been invalidated,
     9        so stop the committer timer to prevent it from firing and trying to access the scrolling tree.
     10
     11        * page/scrolling/ScrollingCoordinator.cpp:
     12        (WebCore::ScrollingCoordinator::pageDestroyed):
     13
    1142012-02-20  Patrick Gansterer  <paroga@webkit.org>
    215
  • trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp

    r108202 r108248  
    7676
    7777#if ENABLE(THREADED_SCROLLING)
     78    m_scrollingTreeStateCommitterTimer.stop();
     79
    7880    // Invalidating the scrolling tree will break the reference cycle between the ScrollingCoordinator and ScrollingTree objects.
    7981    ScrollingThread::dispatch(bind(&ScrollingTree::invalidate, m_scrollingTree.release()));
Note: See TracChangeset for help on using the changeset viewer.