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

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

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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp » ('j') | 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 c2d81dd28aefc97ce467c047e509ac51a754b859..baecf0e79eecdd55590e68e91100f84513ef0ea6 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1198,18 +1198,19 @@ PaintInvalidationReason LayoutObject::invalidatePaintIfNeeded(
ObjectPaintInvalidator paintInvalidator(*this);
context.oldVisualRect = visualRect();
context.oldLocation = paintInvalidator.locationInBacking();
- context.newVisualRect = paintInvalidationState.computeVisualRectInBacking();
- context.newLocation = paintInvalidationState.computeLocationInBacking(
- context.newVisualRect.location());
+ LayoutRect newVisualRect =
+ paintInvalidationState.computeVisualRectInBacking();
+ context.newLocation =
+ paintInvalidationState.computeLocationInBacking(newVisualRect.location());
IntSize adjustment =
scrollAdjustmentForPaintInvalidation(paintInvalidationContainer);
context.newLocation.move(adjustment);
- context.newVisualRect.move(adjustment);
+ newVisualRect.move(adjustment);
- adjustVisualRectForRasterEffects(context.newVisualRect);
+ adjustVisualRectForRasterEffects(newVisualRect);
- setVisualRect(context.newVisualRect);
+ setVisualRect(newVisualRect);
paintInvalidator.setLocationInBacking(context.newLocation);
if (!shouldCheckForPaintInvalidationRegardlessOfPaintInvalidationState() &&
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698