Index: third_party/WebKit/Source/core/layout/LayoutObject.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h |
index ad307f07ecb94249f796294caeba6162f1622f7e..3226576e53e81bd33890a12fbce45f74a75810c3 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h |
@@ -1492,8 +1492,13 @@ protected: |
// owned by this object, including the object itself, LayoutText/LayoutInline line boxes, etc., |
// not including children which will be invalidated normally during invalidateTreeIfNeeded() and |
// parts which are invalidated separately (e.g. scrollbars). |
+ // The caller should ensure the enclosing layer has been setNeedsRepaint before calling this function. |
virtual void invalidateDisplayItemClients(const LayoutBoxModelObject& paintInvalidationContainer, PaintInvalidationReason) const; |
+ // Sets enclosing layer needsRepaint, then calls invalidateDisplayItemClients(). |
+ // Should use this version when PaintInvalidationState is available. |
+ void invalidateDisplayItemClientsWithPaintInvalidationState(const LayoutBoxModelObject& paintInvalidationContainer, const PaintInvalidationState&, PaintInvalidationReason) const; |
+ |
void setIsBackgroundAttachmentFixedObject(bool); |
void clearSelfNeedsOverflowRecalcAfterStyleChange() { m_bitfields.setSelfNeedsOverflowRecalcAfterStyleChange(false); } |
@@ -1541,10 +1546,13 @@ private: |
inline void markContainerChainForPaintInvalidation(); |
- inline void invalidateSelectionIfNeeded(const LayoutBoxModelObject&, PaintInvalidationReason); |
+ inline void invalidateSelectionIfNeeded(const LayoutBoxModelObject& paintInvalidationContainer, const PaintInvalidationState&, PaintInvalidationReason); |
inline void invalidateContainerPreferredLogicalWidths(); |
+ void invalidatePaintIncludingNonSelfPaintingLayerDescendantsInternal(const LayoutBoxModelObject& paintInvalidationContainer); |
+ |
+ // The caller should ensure the enclosing layer has been setNeedsRepaint before calling this function. |
void invalidatePaintOfPreviousPaintInvalidationRect(const LayoutBoxModelObject& paintInvalidationContainer, PaintInvalidationReason); |
LayoutRect previousSelectionRectForPaintInvalidation() const; |