Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h |
| diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h |
| index 4e6e9893d6ea7ae5f42a8c24e88a269a6ffc2717..ec0a40e2d98163a283e42d9c0aaf1e37cb8f8cfe 100644 |
| --- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h |
| +++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h |
| @@ -19,7 +19,7 @@ struct PrePaintTreeWalkContext; |
| // This class walks the whole layout tree, beginning from the root FrameView, |
| // across frame boundaries. Helper classes are called for each tree node to |
| // perform actual actions. It expects to be invoked in InPrePaint phase. |
| -class PrePaintTreeWalk { |
| +class CORE_EXPORT PrePaintTreeWalk { |
| public: |
| PrePaintTreeWalk() {} |
| void Walk(FrameView& root_frame); |
| @@ -34,6 +34,13 @@ class PrePaintTreeWalk { |
| const LayoutObject&, |
| PrePaintTreeWalkContext&); |
| + // Returns true if we should force checking subtree invalidation flags. |
| + ALWAYS_INLINE bool InvalidatePaintLayerOptimizationsForFragment( |
| + const LayoutObject&, |
| + const PaintLayer* ancestor_transformed_or_root_paint_layer, |
| + const PaintPropertyTreeBuilderFragmentContext&, |
| + FragmentData&); |
| + |
| // Returns the clip applied to children for the given containing block context |
| // + effect, in the space of ancestorState adjusted by ancestorPaintOffset. |
| ALWAYS_INLINE LayoutRect ComputeClipRectForContext( |
| @@ -49,8 +56,12 @@ class PrePaintTreeWalk { |
| NeedsTreeBuilderContextUpdate(const LayoutObject&, |
| const PrePaintTreeWalkContext&); |
| + static void ClearPreviousPaintingClipRectsForTesting(const LayoutObject&); |
|
wkorman
2017/05/01 20:29:24
Same as earlier re: whether we need Painting in th
chrishtr
2017/05/01 21:43:54
Done. Also changed the names of the PaintLayer met
|
| + |
| PaintPropertyTreeBuilder property_tree_builder_; |
| PaintInvalidator paint_invalidator_; |
| + |
| + FRIEND_TEST_ALL_PREFIXES(PrePaintTreeWalkTest, ClipRects); |
| }; |
| } // namespace blink |