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

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

Issue 2546353002: Move oof-descendants to NGPhysicalFragmentBase (Closed)
Patch Set: fix win build problem Created 4 years 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_physical_fragment.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc
index 6af27e6df67bd692821a8f415c61a7c50372b46e..dd9da9c77a1e94ecc98119c709c022212b68b93c 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc
@@ -16,16 +16,17 @@ NGPhysicalFragment::NGPhysicalFragment(
HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants,
Vector<NGStaticPosition>& out_of_flow_positions,
NGMarginStrut margin_strut)
- : NGPhysicalFragmentBase(size, overflow, kFragmentBox),
+ : NGPhysicalFragmentBase(size,
+ overflow,
+ kFragmentBox,
+ out_of_flow_descendants,
+ out_of_flow_positions),
margin_strut_(margin_strut) {
children_.swap(children);
- out_of_flow_descendants_.swap(out_of_flow_descendants);
- out_of_flow_positions_.swap(out_of_flow_positions);
}
DEFINE_TRACE_AFTER_DISPATCH(NGPhysicalFragment) {
visitor->trace(children_);
- visitor->trace(out_of_flow_descendants_);
NGPhysicalFragmentBase::traceAfterDispatch(visitor);
}

Powered by Google App Engine
This is Rietveld 408576698