Chromium Code Reviews| 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 c03834d7c33d0b25ac06dd2c41d37302effbed56..21000251da78e2ba5ecf29f95623d256bcc2b6d8 100644 |
| --- a/third_party/WebKit/Source/core/paint/PaintInvalidator.h |
| +++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.h |
| @@ -68,8 +68,17 @@ struct PaintInvalidatorContext { |
| PaintLayer* paintingLayer = nullptr; |
| + // Store the new and old visual rects in the paint invalidation backing's |
| + // coordinates. The rects do *not* account for composited scrolling. |
| + // See LayoutObject::adjustVisualRectForCompositedScrolling(). |
| LayoutRect oldVisualRect; |
| LayoutRect newVisualRect; |
| + |
| + // Store the origin of the object's local coordinates in the paint |
| + // invalidation backing's coordinates. They are used to detect layoutObject |
| + // shifts that forces a full invalidation. |
|
chrishtr
2016/11/04 18:20:07
nit: s/forces/force/
Xianzhu
2016/11/04 19:11:03
Done.
|
| + // The points do *not* account for composited scrolling. See |
| + // LayoutObject::adjustVisualRectForCompositedScrolling(). |
| LayoutPoint oldLocation; |
| LayoutPoint newLocation; |
| }; |
| @@ -90,9 +99,8 @@ class PaintInvalidator { |
| const PaintInvalidatorContext&); |
| LayoutRect computeVisualRectInBacking(const LayoutObject&, |
| const PaintInvalidatorContext&); |
| - LayoutPoint computeLocationFromPaintInvalidationBacking( |
| - const LayoutObject&, |
| - const PaintInvalidatorContext&); |
| + LayoutPoint computeLocationInBacking(const LayoutObject&, |
| + const PaintInvalidatorContext&); |
| void updatePaintingLayer(const LayoutObject&, PaintInvalidatorContext&); |
| void updateContext(const LayoutObject&, PaintInvalidatorContext&); |