Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 1804963005: Avoid paintInvalidationContainer parameter of invalidatePaintIfNeeded() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 f8939f24ad5141970698b79410c43d5b6fd4a339..bca876bcf8463c869f2d296b2a1b9f150788906a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1126,7 +1126,7 @@ public:
void invalidatePaintRectangleNotInvalidatingDisplayItemClients(const LayoutRect&) const;
// Walk the tree after layout issuing paint invalidations for layoutObjects that have changed or moved, updating bounds that have changed, and clearing paint invalidation state.
- virtual void invalidateTreeIfNeeded(PaintInvalidationState&);
+ virtual void invalidateTreeIfNeeded(const PaintInvalidationState&);
// This function only invalidates the visual overflow.
//
@@ -1341,7 +1341,7 @@ public:
bool shouldInvalidateOverflowForPaint() const { return m_bitfields.shouldInvalidateOverflowForPaint(); }
- virtual void clearPaintInvalidationState(const PaintInvalidationState&);
+ virtual void clearPaintInvalidationFlags(const PaintInvalidationState&);
bool mayNeedPaintInvalidation() const { return m_bitfields.mayNeedPaintInvalidation(); }
void setMayNeedPaintInvalidation();
@@ -1542,12 +1542,12 @@ protected:
//
// The function is overridden to handle special children
// (e.g. percentage height descendants or reflections).
- virtual void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState& childPaintInvalidationState);
+ virtual void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPaintInvalidationState);
// This function generates the invalidation for this object only.
// It doesn't recurse into other object, as this is handled
// by invalidatePaintOfSubtreesIfNeeded.
- virtual PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationState&, const LayoutBoxModelObject& paintInvalidationContainer);
+ virtual PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState&);
// When this object is invalidated for paint, this method is called to invalidate any DisplayItemClients
// owned by this object, including the object itself, LayoutText/LayoutInline line boxes, etc.,

Powered by Google App Engine
This is Rietveld 408576698