| Index: Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| diff --git a/Source/core/page/scrolling/ScrollingCoordinator.cpp b/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| index 44e1df16a7fe1d7cd0d587a3403a4ccef6081f5b..02771f3f761bf37035cd4d73b716e92e8733527d 100644
|
| --- a/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| +++ b/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| @@ -122,9 +122,12 @@ void ScrollingCoordinator::notifyLayoutUpdated()
|
| m_shouldScrollOnMainThreadDirty = true;
|
| }
|
|
|
| -void ScrollingCoordinator::updateAfterCompositingChange()
|
| +void ScrollingCoordinator::updateAfterCompositingChangeIfNeeded()
|
| {
|
| - TRACE_EVENT0("input", "ScrollingCoordinator::updateAfterCompositingChange");
|
| + if (!shouldUpdateAfterCompositingChange())
|
| + return;
|
| +
|
| + TRACE_EVENT0("input", "ScrollingCoordinator::updateAfterCompositingChangeIfNeeded");
|
|
|
| if (m_scrollGestureRegionIsDirty) {
|
| // Compute the region of the page where we can't handle scroll gestures and mousewheel events
|
|
|