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 LayoutItem_h | 5 #ifndef LayoutItem_h |
6 #define LayoutItem_h | 6 #define LayoutItem_h |
7 | 7 |
8 #include "core/inspector/InspectorTraceEvents.h" | 8 #include "core/inspector/InspectorTraceEvents.h" |
9 #include "core/layout/LayoutObject.h" | 9 #include "core/layout/LayoutObject.h" |
10 | 10 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 LayoutInvalidationReasonForTracing reason) { | 154 LayoutInvalidationReasonForTracing reason) { |
155 layout_object_->SetNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( | 155 layout_object_->SetNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( |
156 reason); | 156 reason); |
157 } | 157 } |
158 | 158 |
159 void SetMayNeedPaintInvalidation() { | 159 void SetMayNeedPaintInvalidation() { |
160 layout_object_->SetMayNeedPaintInvalidation(); | 160 layout_object_->SetMayNeedPaintInvalidation(); |
161 } | 161 } |
162 | 162 |
163 void SetShouldDoFullPaintInvalidation( | 163 void SetShouldDoFullPaintInvalidation( |
164 PaintInvalidationReason reason = kPaintInvalidationFull) { | 164 PaintInvalidationReason reason = PaintInvalidationReason::kFull) { |
165 layout_object_->SetShouldDoFullPaintInvalidation(reason); | 165 layout_object_->SetShouldDoFullPaintInvalidation(reason); |
166 } | 166 } |
167 | 167 |
168 void SetShouldDoFullPaintInvalidationIncludingNonCompositingDescendants() { | 168 void SetShouldDoFullPaintInvalidationIncludingNonCompositingDescendants() { |
169 layout_object_ | 169 layout_object_ |
170 ->SetShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); | 170 ->SetShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); |
171 } | 171 } |
172 | 172 |
173 void ComputeLayerHitTestRects(LayerHitTestRects& layer_rects) const { | 173 void ComputeLayerHitTestRects(LayerHitTestRects& layer_rects) const { |
174 layout_object_->ComputeLayerHitTestRects(layer_rects); | 174 layout_object_->ComputeLayerHitTestRects(layer_rects); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 private: | 243 private: |
244 LayoutObject* layout_object_; | 244 LayoutObject* layout_object_; |
245 | 245 |
246 friend class LayoutAPIShim; | 246 friend class LayoutAPIShim; |
247 }; | 247 }; |
248 | 248 |
249 } // namespace blink | 249 } // namespace blink |
250 | 250 |
251 #endif // LayoutItem_h | 251 #endif // LayoutItem_h |
OLD | NEW |