Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(997)

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2468863002: scheduler: Re-enable timer throttling for hidden frames (Closed)
Patch Set: Rebased Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 27eb979e482a74ca359dabdff10a03341f592bae..7ba537d146546fa7b7e27563d08cbb1e5c02e4b8 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -4577,6 +4577,11 @@ void FrameView::updateRenderThrottlingStatus(bool hidden,
hasHandlers)
scrollingCoordinator->touchEventTargetRectsDidChange();
+ if (m_frame->frameScheduler()) {
+ m_frame->frameScheduler()->setFrameVisible(!m_hiddenForThrottling);
+ m_frame->frameScheduler()->setCrossOrigin(m_frame->isCrossOriginSubframe());
+ }
+
#if DCHECK_IS_ON()
// Make sure we never have an unthrottled frame inside a throttled one.
FrameView* parent = parentFrameView();
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698