| 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 80565df0ef762904c649c481e51d244adfde82f2..61313bde290021e1e56ca0fafacd2286727a4194 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -3174,7 +3174,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();
|
| }
|
| }
|
| @@ -3185,7 +3186,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)
|
|
|