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

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

Issue 2537653002: Invalidate previousLocationInBacking in LayoutObject::clearPreviousVisualRects() (Closed)
Patch Set: setMayNeedPaintInvalidationSubtree Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/LayoutTests/paint/invalidation/compositing/become-composited-zero-offset-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e1d3ca391ef088bf79da46d2110b12e693710a77..2049367d76af354817202b78d02a37dc94f97772 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1259,7 +1259,11 @@ void LayoutObject::adjustPreviousPaintInvalidationForScrollIfNeeded(
void LayoutObject::clearPreviousVisualRects() {
setPreviousVisualRect(LayoutRect());
- // After clearing ("invalidating" the visual rects, mark this object as
+ ObjectPaintInvalidator(*this).setPreviousLocationInBacking(LayoutPoint());
+ // Ensure check paint invalidation of subtree that would be triggered by
+ // location change if we had valid previous location.
+ setMayNeedPaintInvalidationSubtree();
+ // After clearing ("invalidating") the visual rects, mark this object as
// needing to re-compute them.
setShouldDoFullPaintInvalidation();
}
« no previous file with comments | « third_party/WebKit/LayoutTests/paint/invalidation/compositing/become-composited-zero-offset-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698