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 b1a1f1daa2ffbed00cf4c0e51f36a9a9e80897b8..9d397fb6619451c9b6cb3dc4a91881535da20367 100644 |
--- a/third_party/WebKit/Source/core/page/PageAnimator.cpp |
+++ b/third_party/WebKit/Source/core/page/PageAnimator.cpp |
@@ -73,10 +73,19 @@ void PageAnimator::serviceScriptedAnimations( |
} |
} |
+void PageAnimator::setSuppressFrameRequestsWorkaroundFor704763Only( |
+ bool suppressFrameRequests) { |
+ DCHECK_NE(m_suppressFrameRequestsWorkaroundFor704763Only, |
+ suppressFrameRequests); |
+ m_suppressFrameRequestsWorkaroundFor704763Only = suppressFrameRequests; |
+} |
+ |
DISABLE_CFI_PERF |
void PageAnimator::scheduleVisualUpdate(LocalFrame* frame) { |
- if (m_servicingAnimations || m_updatingLayoutAndStyleForPainting) |
+ if (m_servicingAnimations || m_updatingLayoutAndStyleForPainting || |
+ m_suppressFrameRequestsWorkaroundFor704763Only) { |
return; |
+ } |
m_page->chromeClient().scheduleAnimation(frame->view()); |
} |