| 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 e00f51476cdb872eb478c6c3c7e89273fa6f09c9..b6c32b750da6a3cd25db466de3e2ff0a8491de07 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -2518,6 +2518,9 @@ void FrameView::updateLifecyclePhasesInternal(DocumentLifecycle::LifecycleState
|
| || targetState == DocumentLifecycle::PrePaintClean
|
| || targetState == DocumentLifecycle::PaintClean);
|
|
|
| + if (!m_frame->document()->isActive())
|
| + return;
|
| +
|
| TemporaryChange<DocumentLifecycle::LifecycleState> targetStateScope(m_currentUpdateLifecyclePhasesTargetState, targetState);
|
|
|
| if (shouldThrottleRendering()) {
|
| @@ -2683,7 +2686,7 @@ void FrameView::updateStyleAndLayoutIfNeededRecursive()
|
|
|
| void FrameView::updateStyleAndLayoutIfNeededRecursiveInternal()
|
| {
|
| - if (shouldThrottleRendering())
|
| + if (shouldThrottleRendering() || !m_frame->document()->isActive())
|
| return;
|
|
|
| ScopedFrameBlamer frameBlamer(m_frame);
|
|
|