| 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 98b086e6bdfc5f1c2f43e46096bccc614c0ea890..99094854275162145fa7d7c21cb031cc2e521e61 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -4253,9 +4253,10 @@ void FrameView::updateViewportIntersectionsForSubtree(DocumentLifecycle::Lifecyc
|
|
|
| void FrameView::updateThrottlingStatus()
|
| {
|
| - // Only offscreen frames can be throttled.
|
| + // Only offscreen frames can be throttled. Note that we disallow throttling
|
| + // of 0x0 frames because some sites use them to drive UI logic.
|
| DCHECK(m_viewportIntersectionValid);
|
| - m_hiddenForThrottling = m_viewportIntersection.isEmpty();
|
| + m_hiddenForThrottling = m_viewportIntersection.isEmpty() && !frameRect().isEmpty();
|
|
|
| // We only throttle the rendering pipeline in cross-origin frames. This is
|
| // to avoid a situation where an ancestor frame directly depends on the
|
|
|