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

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

Issue 2541763002: Invalidate previousLocationInBacking in LayoutObject::clearPreviousVisualRects() (Closed)
Patch Set: 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 c34902ecec7e5da81b2824dc66d53d77890c1574..9534e3100d2d326208c8a9c88f2514344fcf0f4d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1258,7 +1258,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