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() && |