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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_physical_box_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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/layout/ng/ng_physical_box_fragment.h" 5 #include "core/layout/ng/ng_physical_box_fragment.h"
6 6
7 #include "core/layout/ng/ng_floating_object.h"
8
7 namespace blink { 9 namespace blink {
8 10
9 NGPhysicalBoxFragment::NGPhysicalBoxFragment( 11 NGPhysicalBoxFragment::NGPhysicalBoxFragment(
10 LayoutObject* layout_object, 12 LayoutObject* layout_object,
11 NGPhysicalSize size, 13 NGPhysicalSize size,
12 NGPhysicalSize overflow, 14 NGPhysicalSize overflow,
13 Vector<RefPtr<NGPhysicalFragment>>& children, 15 Vector<RefPtr<NGPhysicalFragment>>& children,
14 PersistentHeapLinkedHashSet<WeakMember<NGBlockNode>>&
15 out_of_flow_descendants,
16 Vector<NGStaticPosition>& out_of_flow_positions,
17 Vector<Persistent<NGFloatingObject>>& unpositioned_floats,
18 Vector<Persistent<NGFloatingObject>>& positioned_floats, 16 Vector<Persistent<NGFloatingObject>>& positioned_floats,
19 const WTF::Optional<NGLogicalOffset>& bfc_offset, 17 const WTF::Optional<NGLogicalOffset>& bfc_offset,
20 const NGMarginStrut& end_margin_strut, 18 const NGMarginStrut& end_margin_strut,
21 NGBreakToken* break_token) 19 NGBreakToken* break_token)
22 : NGPhysicalFragment(layout_object, 20 : NGPhysicalFragment(layout_object,
23 size, 21 size,
24 overflow, 22 overflow,
25 kFragmentBox, 23 kFragmentBox,
26 out_of_flow_descendants,
27 out_of_flow_positions,
28 unpositioned_floats,
29 positioned_floats,
30 break_token), 24 break_token),
25 positioned_floats_(positioned_floats),
31 bfc_offset_(bfc_offset), 26 bfc_offset_(bfc_offset),
32 end_margin_strut_(end_margin_strut) { 27 end_margin_strut_(end_margin_strut) {
33 children_.swap(children); 28 children_.swap(children);
34 } 29 }
35 30
36 } // namespace blink 31 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698