| Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| index dd976b77bff4aa2411b104588939d6ac91b35734..7c72cf2d951c52171a2a57ca167e9bcf1aa3fa47 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -3249,7 +3249,8 @@ void LayoutObject::setShouldDoFullPaintInvalidation(PaintInvalidationReason reas
|
|
|
| if (!isUpgradingDelayedFullToFull) {
|
| ASSERT(document().lifecycle().state() != DocumentLifecycle::InPaintInvalidation);
|
| - frame()->page()->animator().scheduleVisualUpdate(); // In case that this is called outside of FrameView::updateLayoutAndStyleForPainting().
|
| + if (!frameView() || !frameView()->shouldThrottleRenderingPipeline())
|
| + frame()->page()->animator().scheduleVisualUpdate(); // In case that this is called outside of FrameView::updateLayoutAndStyleForPainting().
|
| markContainerChainForPaintInvalidation();
|
| }
|
| }
|
| @@ -3260,7 +3261,8 @@ void LayoutObject::setMayNeedPaintInvalidation()
|
| return;
|
| m_bitfields.setMayNeedPaintInvalidation(true);
|
| markContainerChainForPaintInvalidation();
|
| - frame()->page()->animator().scheduleVisualUpdate(); // In case that this is called outside of FrameView::updateLayoutAndStyleForPainting().
|
| + if (!frameView() || !frameView()->shouldThrottleRenderingPipeline())
|
| + frame()->page()->animator().scheduleVisualUpdate(); // In case that this is called outside of FrameView::updateLayoutAndStyleForPainting().
|
| }
|
|
|
| void LayoutObject::clearPaintInvalidationState(const PaintInvalidationState& paintInvalidationState)
|
|
|