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

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

Issue 2220333004: Set objects to need full paint invalidation after clearing their invalidation rects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: none Created 4 years, 4 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.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 41dba4ef9b60ad6c8700410bd6eb1b2720df4d7f..83bba0a5ae315106c1d4f4d728a55cce03bcae9b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1485,6 +1485,8 @@ void LayoutObject::adjustPreviousPaintInvalidationForScrollIfNeeded(const Double
void LayoutObject::clearPreviousPaintInvalidationRects()
{
setPreviousPaintInvalidationRect(LayoutRect());
+ // After clearing ("invalidating" the paint invalidation rects, mark this object as needing to re-compute them.
+ setShouldDoFullPaintInvalidation();
}
void LayoutObject::incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const LayoutPoint& positionFromPaintInvalidationBacking)

Powered by Google App Engine
This is Rietveld 408576698