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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LayoutItem.h

Issue 2872423002: Tweak PaintInvalidationReasons (Closed)
Patch Set: Rebaseline-cl Created 3 years, 7 months 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698