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

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

Issue 2294253002: scheduler: Throttle timers in out-of-view frames (Closed)
Patch Set: Created 4 years, 4 months 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
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 303f0fd6395abe905f48ad6953833ca174e661c7..847432e8fb67c7663c317704b498fe48698c023a 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -4258,6 +4258,8 @@ void FrameView::updateThrottlingStatus()
if (parentFrame->isLocalFrame() && toLocalFrame(parentFrame)->view() && toLocalFrame(parentFrame)->view()->canThrottleRendering())
m_subtreeThrottled = true;
}
+ m_frame->frameScheduler()->setFrameVisible(!m_hiddenForThrottling);
+ m_frame->frameScheduler()->setCrossOrigin(m_crossOriginForThrottling);
}
void FrameView::notifyRenderThrottlingObserversForTesting()
« no previous file with comments | « content/public/common/content_features.cc ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698