| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PaintInvalidator_h | 5 #ifndef PaintInvalidator_h |
| 6 #define PaintInvalidator_h | 6 #define PaintInvalidator_h |
| 7 | 7 |
| 8 #include "core/layout/LayoutObject.h" | 8 #include "core/layout/LayoutObject.h" |
| 9 #include "core/paint/PaintPropertyTreeBuilder.h" | 9 #include "core/paint/PaintPropertyTreeBuilder.h" |
| 10 #include "platform/geometry/LayoutRect.h" | 10 #include "platform/geometry/LayoutRect.h" |
| 11 #include "wtf/Vector.h" | 11 #include "platform/wtf/Vector.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 struct PaintInvalidatorContext { | 15 struct PaintInvalidatorContext { |
| 16 PaintInvalidatorContext( | 16 PaintInvalidatorContext( |
| 17 const PaintPropertyTreeBuilderContext* tree_builder_context) | 17 const PaintPropertyTreeBuilderContext* tree_builder_context) |
| 18 : parent_context(nullptr), tree_builder_context_(tree_builder_context) {} | 18 : parent_context(nullptr), tree_builder_context_(tree_builder_context) {} |
| 19 | 19 |
| 20 PaintInvalidatorContext( | 20 PaintInvalidatorContext( |
| 21 const PaintPropertyTreeBuilderContext* tree_builder_context, | 21 const PaintPropertyTreeBuilderContext* tree_builder_context, |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 PaintInvalidatorContext&); | 144 PaintInvalidatorContext&); |
| 145 ALWAYS_INLINE void UpdateVisualRect(const LayoutObject&, | 145 ALWAYS_INLINE void UpdateVisualRect(const LayoutObject&, |
| 146 PaintInvalidatorContext&); | 146 PaintInvalidatorContext&); |
| 147 | 147 |
| 148 Vector<const LayoutObject*> pending_delayed_paint_invalidations_; | 148 Vector<const LayoutObject*> pending_delayed_paint_invalidations_; |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| 152 | 152 |
| 153 #endif // PaintInvalidator_h | 153 #endif // PaintInvalidator_h |
| OLD | NEW |