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

Unified Diff: third_party/WebKit/Source/core/paint/PaintInvalidator.h

Issue 2745793004: Remove PaintInvalidatorContext::newVisualRect (Closed)
Patch Set: - Created 3 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/paint/PaintInvalidator.h
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.h b/third_party/WebKit/Source/core/paint/PaintInvalidator.h
index ddb0a2d33fa72c0385ea9a6c8c148e8a96dcf775..f82fd9116f2fac59773f920da659009a4b9233c3 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.h
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.h
@@ -71,11 +71,11 @@ struct PaintInvalidatorContext {
PaintLayer* paintingLayer = nullptr;
- // Store the old and new visual rects in the paint invalidation backing's
- // coordinates. The rects do *not* account for composited scrolling.
+ // Store the old visual rect in the paint invalidation backing's coordinates.
+ // It does *not* account for composited scrolling.
// See LayoutObject::adjustVisualRectForCompositedScrolling().
LayoutRect oldVisualRect;
- LayoutRect newVisualRect;
+ // Use LayoutObject::visualRect() to get the new visual rect.
// Store the origin of the object's local coordinates in the paint
// invalidation backing's coordinates. They are used to detect layoutObject

Powered by Google App Engine
This is Rietveld 408576698