| Index: third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
|
| diff --git a/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp b/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
|
| index de0000b4a8f5a948cb00f564d08a62014024fb01..d093b91364fa430ce734e6d2eae7e7a470cb9370 100644
|
| --- a/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
|
| +++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
|
| @@ -259,10 +259,16 @@ void ScrollAnimator::updateCompositorAnimations()
|
| }
|
| }
|
|
|
| + bool runningOnMainThread = false;
|
| if (!sentToCompositor) {
|
| - if (registerAndScheduleAnimation())
|
| + runningOnMainThread = registerAndScheduleAnimation();
|
| + if (runningOnMainThread)
|
| m_runState = RunState::RunningOnMainThread;
|
| }
|
| +
|
| + // Main thread should deal with the scroll animations it started.
|
| + if (sentToCompositor || runningOnMainThread)
|
| + addMainThreadScrollingReason();
|
| }
|
| }
|
|
|
|
|