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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h

Issue 2954953002: [LayoutNG] Abort a layout once the BFC offset is resolved. (Closed)
Patch Set: rebase. Created 3 years, 5 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 NGConstraintSpace_h 5 #ifndef NGConstraintSpace_h
6 #define NGConstraintSpace_h 6 #define NGConstraintSpace_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/geometry/ng_logical_offset.h" 9 #include "core/layout/ng/geometry/ng_logical_offset.h"
10 #include "core/layout/ng/geometry/ng_logical_size.h" 10 #include "core/layout/ng/geometry/ng_logical_size.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // 141 //
142 // This value should be propogated to child layouts if the current layout 142 // This value should be propogated to child layouts if the current layout
143 // hasn't resolved its BFC offset yet. 143 // hasn't resolved its BFC offset yet.
144 // 144 //
145 // This value is calculated *after* an initial pass of the tree, this value 145 // This value is calculated *after* an initial pass of the tree, this value
146 // should only be present during the second pass. 146 // should only be present during the second pass.
147 WTF::Optional<NGLogicalOffset> FloatsBfcOffset() const { 147 WTF::Optional<NGLogicalOffset> FloatsBfcOffset() const {
148 return floats_bfc_offset_; 148 return floats_bfc_offset_;
149 } 149 }
150 150
151 Vector<RefPtr<NGUnpositionedFloat>>& UnpositionedFloats() { 151 const Vector<RefPtr<NGUnpositionedFloat>>& UnpositionedFloats() const {
152 return unpositioned_floats_; 152 return unpositioned_floats_;
153 } 153 }
154 154
155 WTF::Optional<LayoutUnit> ClearanceOffset() const { 155 WTF::Optional<LayoutUnit> ClearanceOffset() const {
156 return clearance_offset_; 156 return clearance_offset_;
157 } 157 }
158 158
159 const Vector<NGBaselineRequest>& BaselineRequests() const { 159 const Vector<NGBaselineRequest>& BaselineRequests() const {
160 return baseline_requests_; 160 return baseline_requests_;
161 } 161 }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 }; 231 };
232 232
233 inline std::ostream& operator<<(std::ostream& stream, 233 inline std::ostream& operator<<(std::ostream& stream,
234 const NGConstraintSpace& value) { 234 const NGConstraintSpace& value) {
235 return stream << value.ToString(); 235 return stream << value.ToString();
236 } 236 }
237 237
238 } // namespace blink 238 } // namespace blink
239 239
240 #endif // NGConstraintSpace_h 240 #endif // NGConstraintSpace_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698