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

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

Issue 2489893002: [SPv2] Track paint offset change (Closed)
Patch Set: - Created 4 years, 1 month 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 7813bdb83e2c72849a4ecd4420f15412f1f795c9..e93ec3c9522cfefb34f97121c49b9be527e70928 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.h
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.h
@@ -69,7 +69,7 @@ struct PaintInvalidatorContext {
PaintLayer* paintingLayer = nullptr;
- // Store the new and old visual rects in the paint invalidation backing's
+ // Store the old and new visual rects in the paint invalidation backing's
// coordinates. The rects do *not* account for composited scrolling.
// See LayoutObject::adjustVisualRectForCompositedScrolling().
LayoutRect oldVisualRect;
@@ -82,6 +82,11 @@ struct PaintInvalidatorContext {
// LayoutObject::adjustVisualRectForCompositedScrolling().
LayoutPoint oldLocation;
LayoutPoint newLocation;
+
+ // Stores the old and new offsets to paint this object, relative to the
+ // containing transform node. They are for SPv2 only.
+ LayoutPoint oldPaintOffset;
+ LayoutPoint newPaintOffset;
};
class PaintInvalidator {
« no previous file with comments | « third_party/WebKit/Source/core/paint/ObjectPainter.cpp ('k') | third_party/WebKit/Source/core/paint/PaintInvalidator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698