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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc

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.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc
index 59a32a267d923f1e19c011951ce26be508b7c3bc..5652b3018a6178d848d1661c3bfd74db287695b3 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc
@@ -27,6 +27,7 @@ NGConstraintSpace::NGConstraintSpace(
bool is_anonymous,
const NGMarginStrut& margin_strut,
const NGLogicalOffset& bfc_offset,
+ const WTF::Optional<NGLogicalOffset>& floats_bfc_offset,
const std::shared_ptr<NGExclusions>& exclusions,
Vector<RefPtr<NGUnpositionedFloat>>& unpositioned_floats,
const WTF::Optional<LayoutUnit>& clearance_offset)
@@ -48,6 +49,7 @@ NGConstraintSpace::NGConstraintSpace(
direction_(static_cast<unsigned>(direction)),
margin_strut_(margin_strut),
bfc_offset_(bfc_offset),
+ floats_bfc_offset_(floats_bfc_offset),
exclusions_(exclusions),
clearance_offset_(clearance_offset) {
unpositioned_floats_.swap(unpositioned_floats);
@@ -165,6 +167,7 @@ bool NGConstraintSpace::operator==(const NGConstraintSpace& other) const {
direction_ == other.direction_ &&
margin_strut_ == other.margin_strut_ &&
bfc_offset_ == other.bfc_offset_ &&
+ floats_bfc_offset_ == other.floats_bfc_offset_ &&
clearance_offset_ == other.clearance_offset_;
}

Powered by Google App Engine
This is Rietveld 408576698