| Index: third_party/WebKit/Source/core/page/PageAnimator.cpp
|
| diff --git a/third_party/WebKit/Source/core/page/PageAnimator.cpp b/third_party/WebKit/Source/core/page/PageAnimator.cpp
|
| index 19a7dd327567a1e4b1395fd9ef8b42f30c62d302..570396d652f4ba167d4f1c224f06673693ba8799 100644
|
| --- a/third_party/WebKit/Source/core/page/PageAnimator.cpp
|
| +++ b/third_party/WebKit/Source/core/page/PageAnimator.cpp
|
| @@ -47,6 +47,9 @@ void PageAnimator::serviceScriptedAnimations(double monotonicAnimationStartTime)
|
| if (document->view()) {
|
| if (document->view()->shouldThrottleRendering())
|
| continue;
|
| + // Disallow throttling in case any script needs to do a synchronous
|
| + // lifecycle update in other frames which are throttled.
|
| + DocumentLifecycle::DisallowThrottlingScope noThrottlingScope(document->lifecycle());
|
| document->view()->getScrollableArea()->serviceScrollAnimations(monotonicAnimationStartTime);
|
|
|
| if (const FrameView::ScrollableAreaSet* animatingScrollableAreas = document->view()->animatingScrollableAreas()) {
|
| @@ -60,6 +63,7 @@ void PageAnimator::serviceScriptedAnimations(double monotonicAnimationStartTime)
|
| SVGDocumentExtensions::serviceOnAnimationFrame(*document);
|
| }
|
| // TODO(skyostil): This function should not run for documents without views.
|
| + DocumentLifecycle::DisallowThrottlingScope noThrottlingScope(document->lifecycle());
|
| document->serviceScriptedAnimations(monotonicAnimationStartTime);
|
| }
|
|
|
|
|