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

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

Issue 2702403003: [layoutng] Split NGLayoutResult out of NGPhysicalFragment (Closed)
Patch Set: rebased Created 3 years, 10 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_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 b0491072de14b24adf55512075d5a8cfe33f2da9..291a8f7fd34822c58207f163321f9424255dd017 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
@@ -10,28 +10,17 @@
namespace blink {
-NGPhysicalFragment::NGPhysicalFragment(
- LayoutObject* layout_object,
- NGPhysicalSize size,
- NGPhysicalSize overflow,
- NGFragmentType type,
- PersistentHeapLinkedHashSet<WeakMember<NGBlockNode>>&
- out_of_flow_descendants,
- Vector<NGStaticPosition> out_of_flow_positions,
- Vector<Persistent<NGFloatingObject>>& unpositioned_floats,
- Vector<Persistent<NGFloatingObject>>& positioned_floats,
- NGBreakToken* break_token)
+NGPhysicalFragment::NGPhysicalFragment(LayoutObject* layout_object,
+ NGPhysicalSize size,
+ NGPhysicalSize overflow,
+ NGFragmentType type,
+ NGBreakToken* break_token)
: layout_object_(layout_object),
size_(size),
overflow_(overflow),
break_token_(break_token),
type_(type),
- is_placed_(false) {
- out_of_flow_descendants_.swap(out_of_flow_descendants);
- out_of_flow_positions_.swap(out_of_flow_positions);
- unpositioned_floats_.swap(unpositioned_floats);
- positioned_floats_.swap(positioned_floats);
-}
+ is_placed_(false) {}
void NGPhysicalFragment::destroy() const {
if (Type() == kFragmentText)

Powered by Google App Engine
This is Rietveld 408576698