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

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

Issue 2457023002: Replace coversExtraPixels with simpler logic (Closed)
Patch Set: Rebaseline 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 4e3cbf445b5bb3b2f91f048884e177cc599ba291..952afea529e7af6937417a00cefe766901d1799e 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.rect = previousPaintInvalidationRect();
+ context.oldBounds = previousPaintInvalidationRect();
context.oldLocation = previousPositionFromPaintInvalidationBacking();
- context.newBounds.rect =
+ context.newBounds =
paintInvalidationState.computePaintInvalidationRectInBacking();
context.newLocation =
paintInvalidationState.computePositionFromPaintInvalidationBacking();
@@ -1215,11 +1215,11 @@ PaintInvalidationReason LayoutObject::invalidatePaintIfNeeded(
IntSize adjustment =
scrollAdjustmentForPaintInvalidation(paintInvalidationContainer);
context.newLocation.move(adjustment);
- context.newBounds.rect.move(adjustment);
+ context.newBounds.move(adjustment);
- adjustVisualRectForRasterEffects(context.newBounds.rect);
+ adjustVisualRectForRasterEffects(context.newBounds);
- setPreviousPaintInvalidationRect(context.newBounds.rect);
+ setPreviousPaintInvalidationRect(context.newBounds);
setPreviousPositionFromPaintInvalidationBacking(context.newLocation);
if (!shouldCheckForPaintInvalidationRegardlessOfPaintInvalidationState() &&
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/paint/BoxPaintInvalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698