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

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

Issue 2449953005: [SPInvalidation] Handle pixel-snapping of paint invalidation rects (Closed)
Patch Set: PaintInvalidationRectInBacking struct Created 4 years, 2 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/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 31a5e46b1705d26a9749648bd6c7e0a0a0db04e8..766252d70d6bdd42ebb27ef0bbd76d8e34442683 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1205,9 +1205,9 @@ PaintInvalidationReason LayoutObject::invalidatePaintIfNeeded(
paintInvalidationState.paintInvalidationContainer();
DCHECK(paintInvalidationContainer == containerForPaintInvalidation());
- context.oldBounds = previousPaintInvalidationRect();
+ context.oldBounds.rect = previousPaintInvalidationRect();
context.oldLocation = previousPositionFromPaintInvalidationBacking();
- context.newBounds =
+ context.newBounds.rect =
paintInvalidationState.computePaintInvalidationRectInBacking();
context.newLocation =
paintInvalidationState.computePositionFromPaintInvalidationBacking();
@@ -1215,11 +1215,11 @@ PaintInvalidationReason LayoutObject::invalidatePaintIfNeeded(
IntSize adjustment =
scrollAdjustmentForPaintInvalidation(paintInvalidationContainer);
context.newLocation.move(adjustment);
- context.newBounds.move(adjustment);
+ context.newBounds.rect.move(adjustment);
- adjustVisualRectForRasterEffects(context.newBounds);
+ adjustVisualRectForRasterEffects(context.newBounds.rect);
- setPreviousPaintInvalidationRect(context.newBounds);
+ setPreviousPaintInvalidationRect(context.newBounds.rect);
setPreviousPositionFromPaintInvalidationBacking(context.newLocation);
if (!shouldCheckForPaintInvalidationRegardlessOfPaintInvalidationState() &&

Powered by Google App Engine
This is Rietveld 408576698