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 92177225f6e30dbaa865f5197f386664f36000e4..3ad4a623b46c2f1ca2802e9d1976f8b3748944ac 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp |
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp |
@@ -4139,6 +4139,7 @@ void FrameView::updateThrottlingStatus() |
{ |
// Only offscreen frames can be throttled. |
m_hiddenForThrottling = m_viewportIntersectionValid && m_viewportIntersection.isEmpty(); |
+ m_frame->frameScheduler()->setFrameVisible(!m_hiddenForThrottling); |
// We only throttle the rendering pipeline in cross-origin frames. This is |
// to avoid a situation where an ancestor frame directly depends on the |
@@ -4159,6 +4160,7 @@ void FrameView::updateThrottlingStatus() |
if (parentFrame->isLocalFrame() && toLocalFrame(parentFrame)->view() && toLocalFrame(parentFrame)->view()->canThrottleRendering()) |
m_subtreeThrottled = true; |
} |
+ m_frame->frameScheduler()->setCrossOrigin(m_crossOriginForThrottling); |
} |
void FrameView::notifyRenderThrottlingObserversForTesting() |