Changeset 214482 in webkit


Ignore:
Timestamp:
Mar 28, 2017 11:29:37 AM (7 years ago)
Author:
Simon Fraser
Message:

Make sure the non-fast scrolling debug overlay is correctly updated
https://bugs.webkit.org/show_bug.cgi?id=170142

Reviewed by Tim Horton.

AsyncScrollingCoordinator::frameViewEventTrackingRegionsChanged() is called on a timer
from Document code, so the existing DebugPageOverlays::didLayout() call at the end
of FrameView::layout() wasn't sufficient to keep the non-fast scrollable region up-to-date
on iOS.

  • page/scrolling/AsyncScrollingCoordinator.cpp:

(WebCore::AsyncScrollingCoordinator::frameViewEventTrackingRegionsChanged):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r214481 r214482  
     12017-03-27  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Make sure the non-fast scrolling debug overlay is correctly updated
     4        https://bugs.webkit.org/show_bug.cgi?id=170142
     5
     6        Reviewed by Tim Horton.
     7
     8        AsyncScrollingCoordinator::frameViewEventTrackingRegionsChanged() is called on a timer
     9        from Document code, so the existing DebugPageOverlays::didLayout() call at the end
     10        of FrameView::layout() wasn't sufficient to keep the non-fast scrollable region up-to-date
     11        on iOS.
     12
     13        * page/scrolling/AsyncScrollingCoordinator.cpp:
     14        (WebCore::AsyncScrollingCoordinator::frameViewEventTrackingRegionsChanged):
     15
    1162017-03-28  Antoine Quint  <graouts@apple.com>
    217
  • trunk/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.cpp

    r212559 r214482  
    2929#include "AsyncScrollingCoordinator.h"
    3030
     31#include "DebugPageOverlays.h"
    3132#include "Document.h"
    3233#include "EditorClient.h"
     
    197198}
    198199
    199 void AsyncScrollingCoordinator::frameViewEventTrackingRegionsChanged(FrameView&)
     200void AsyncScrollingCoordinator::frameViewEventTrackingRegionsChanged(FrameView& frameView)
    200201{
    201202    if (!m_scrollingStateTree->rootStateNode())
     
    203204
    204205    setEventTrackingRegionsDirty();
     206    DebugPageOverlays::didChangeEventHandlers(frameView.frame());
    205207}
    206208
Note: See TracChangeset for help on using the changeset viewer.