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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h

Issue 2966863002: [LayoutNG] Add floats_bfc_offset to constraint space. (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h
index bfe179aff48c3fc9323c6ade83418d58917a310c..60006fdf687f0fdd1ba9f7350c2840e85b9ebb43 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h
@@ -53,7 +53,9 @@ class CORE_EXPORT NGConstraintSpaceBuilder final {
NGConstraintSpaceBuilder& SetMarginStrut(const NGMarginStrut& margin_strut);
- NGConstraintSpaceBuilder& SetBfcOffset(const NGLogicalOffset& offset);
+ NGConstraintSpaceBuilder& SetBfcOffset(const NGLogicalOffset& bfc_offset);
+ NGConstraintSpaceBuilder& SetFloatsBfcOffset(
+ const WTF::Optional<NGLogicalOffset>& floats_bfc_offset);
NGConstraintSpaceBuilder& SetClearanceOffset(
const WTF::Optional<LayoutUnit>& clearance_offset);
@@ -89,6 +91,7 @@ class CORE_EXPORT NGConstraintSpaceBuilder final {
NGMarginStrut margin_strut_;
NGLogicalOffset bfc_offset_;
+ WTF::Optional<NGLogicalOffset> floats_bfc_offset_;
std::shared_ptr<NGExclusions> exclusions_;
WTF::Optional<LayoutUnit> clearance_offset_;
Vector<RefPtr<NGUnpositionedFloat>> unpositioned_floats_;

Powered by Google App Engine
This is Rietveld 408576698