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

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

Issue 1950573003: Improve handling of PaintInvalidationLayer (renamed to PaintInvalidationSubtree) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@LocationChange
Patch Set: Created 4 years, 7 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 e1eb115fc939e3976e472b76429e6eb4f98d0a05..484b99accf55737dadfab10d60bcd684daec4194 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1365,11 +1365,7 @@ public:
bool shouldCheckForPaintInvalidation(const PaintInvalidationState& paintInvalidationState) const
{
- // Should check for paint invalidation if some ancestor changed location, because this object
- // may also change paint offset or location in paint invalidation container, even if there is
- // no paint invalidation flag set.
- return paintInvalidationState.forcedSubtreeInvalidationWithinContainer()
- || paintInvalidationState.forcedSubtreeInvalidationRectUpdateWithinContainer()
+ return paintInvalidationState.hasForcedSubtreeInvalidationFlags()
|| shouldCheckForPaintInvalidationRegardlessOfPaintInvalidationState();
}
@@ -1521,7 +1517,7 @@ protected:
void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPaintInvalidationRect = rect; }
- virtual PaintInvalidationReason getPaintInvalidationReason(const LayoutBoxModelObject& paintInvalidationContainer,
+ virtual PaintInvalidationReason getPaintInvalidationReason(const PaintInvalidationState&,
const LayoutRect& oldPaintInvalidationRect, const LayoutPoint& oldPositionFromPaintInvalidationBacking,
const LayoutRect& newPaintInvalidationRect, const LayoutPoint& newPositionFromPaintInvalidationBacking) const;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698