Index: Source/core/rendering/RenderObject.cpp |
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp |
index bd81e32052873b06a824de4a8a46a4fff3ca2797..8b103c9356a98f45670d1a747391f5cbf94a650d 100644 |
--- a/Source/core/rendering/RenderObject.cpp |
+++ b/Source/core/rendering/RenderObject.cpp |
@@ -1540,7 +1540,7 @@ void RenderObject::invalidatePaintUsingContainer(const RenderLayerModelObject* p |
} |
} |
-void RenderObject::paintInvalidationForWholeRenderer() const |
+void RenderObject::invalidatePaintForWholeRenderer() const |
{ |
if (!isRooted()) |
return; |
@@ -3408,6 +3408,17 @@ bool RenderObject::isRelayoutBoundaryForInspector() const |
return objectIsRelayoutBoundary(this); |
} |
+void RenderObject::setShouldDoFullPaintInvalidation(bool b, MarkingBehavior markBehavior) |
+{ |
+ m_bitfields.setShouldDoFullPaintInvalidation(b); |
+ |
+ if (markBehavior == MarkContainingBlockChain && b) { |
+ ASSERT(document().lifecycle().state() != DocumentLifecycle::InPaintInvalidation); |
+ frame()->page()->animator().scheduleVisualUpdate(); // In case that this is called not during FrameView::updateLayoutAndStyleForPainting(). |
+ markContainingBlockChainForPaintInvalidation(); |
+ } |
+} |
+ |
void RenderObject::clearPaintInvalidationState(const PaintInvalidationState& paintInvalidationState) |
{ |
// paintInvalidationStateIsDirty should be kept in sync with the |