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

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

Issue 2449953005: [SPInvalidation] Handle pixel-snapping of paint invalidation rects (Closed)
Patch Set: 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/paint/PaintInvalidator.h
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.h b/third_party/WebKit/Source/core/paint/PaintInvalidator.h
index 68c7e5aa0312ec396be16cb188cd2ba363912e4a..6b62c6548a70959098a82f90d8212a666bf4ce87 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.h
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.h
@@ -72,6 +72,8 @@ struct PaintInvalidatorContext {
LayoutRect newBounds;
LayoutPoint oldLocation;
LayoutPoint newLocation;
+ bool oldBoundsCoversExtraPixels = false;
+ bool newBoundsCoversExtraPixels = false;
};
class PaintInvalidator {
@@ -87,10 +89,12 @@ class PaintInvalidator {
LayoutRect mapLocalRectToPaintInvalidationBacking(
const LayoutObject&,
const FloatRect&,
- const PaintInvalidatorContext&);
+ const PaintInvalidatorContext&,
+ bool& coversExtraPixels);
LayoutRect computePaintInvalidationRectInBacking(
pdr. 2016/10/26 05:25:12 Returning through both a return value and an out-p
Xianzhu 2016/10/26 18:32:31 Done.
const LayoutObject&,
- const PaintInvalidatorContext&);
+ const PaintInvalidatorContext&,
+ bool& coversExtraPixels);
LayoutPoint computeLocationFromPaintInvalidationBacking(
const LayoutObject&,
const PaintInvalidatorContext&);

Powered by Google App Engine
This is Rietveld 408576698