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

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

Issue 2960233002: [LayoutNG] Move bfc_offset_, end_margin_sturt_ to NGLayoutResult (Closed)
Patch Set: OOF -> OutOfFlow 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_layout_result.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_result.cc b/third_party/WebKit/Source/core/layout/ng/ng_layout_result.cc
index cc1168468079ad1b92305d786f3503da59d2c33c..35779bcfc3aad13b06af6692c3ec6c2d6e0e9fc1 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_result.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_result.cc
@@ -8,13 +8,15 @@ namespace blink {
NGLayoutResult::NGLayoutResult(
PassRefPtr<NGPhysicalFragment> physical_fragment,
- Vector<NGBlockNode>& out_of_flow_descendants,
- Vector<NGStaticPosition> out_of_flow_positions,
- Vector<RefPtr<NGUnpositionedFloat>>& unpositioned_floats)
+ Vector<NGOutOfFlowPositionedDescendant> oof_positioned_descendants,
+ Vector<RefPtr<NGUnpositionedFloat>>& unpositioned_floats,
+ const WTF::Optional<NGLogicalOffset> bfc_offset,
+ const NGMarginStrut end_margin_strut)
: physical_fragment_(std::move(physical_fragment)),
- out_of_flow_descendants_(out_of_flow_descendants),
- out_of_flow_positions_(out_of_flow_positions) {
+ bfc_offset_(bfc_offset),
+ end_margin_strut_(end_margin_strut) {
unpositioned_floats_.swap(unpositioned_floats);
+ oof_positioned_descendants_.swap(oof_positioned_descendants);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698