OLD | NEW |
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 namespace blink { | 7 namespace blink { |
8 | 8 |
9 NGPhysicalBoxFragment::NGPhysicalBoxFragment( | 9 NGPhysicalBoxFragment::NGPhysicalBoxFragment( |
10 LayoutObject* layout_object, | 10 LayoutObject* layout_object, |
11 NGPhysicalSize size, | 11 NGPhysicalSize size, |
12 NGPhysicalSize overflow, | 12 NGPhysicalSize overflow, |
13 HeapVector<Member<NGPhysicalFragment>>& children, | 13 HeapVector<Member<NGPhysicalFragment>>& children, |
14 HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants, | 14 HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants, |
15 Vector<NGStaticPosition>& out_of_flow_positions, | 15 Vector<NGStaticPosition>& out_of_flow_positions, |
16 NGDeprecatedMarginStrut margin_strut, | |
17 HeapVector<Member<NGFloatingObject>>& unpositioned_floats, | 16 HeapVector<Member<NGFloatingObject>>& unpositioned_floats, |
18 HeapVector<Member<NGFloatingObject>>& positioned_floats, | 17 HeapVector<Member<NGFloatingObject>>& positioned_floats, |
| 18 const WTF::Optional<NGLogicalOffset>& bfc_offset, |
| 19 const NGMarginStrut& end_margin_strut, |
19 NGBreakToken* break_token) | 20 NGBreakToken* break_token) |
20 : NGPhysicalFragment(layout_object, | 21 : NGPhysicalFragment(layout_object, |
21 size, | 22 size, |
22 overflow, | 23 overflow, |
23 kFragmentBox, | 24 kFragmentBox, |
24 out_of_flow_descendants, | 25 out_of_flow_descendants, |
25 out_of_flow_positions, | 26 out_of_flow_positions, |
26 unpositioned_floats, | 27 unpositioned_floats, |
27 positioned_floats, | 28 positioned_floats, |
28 break_token), | 29 break_token), |
29 margin_strut_(margin_strut) { | 30 bfc_offset_(bfc_offset), |
| 31 end_margin_strut_(end_margin_strut) { |
30 children_.swap(children); | 32 children_.swap(children); |
31 } | 33 } |
32 | 34 |
33 DEFINE_TRACE_AFTER_DISPATCH(NGPhysicalBoxFragment) { | 35 DEFINE_TRACE_AFTER_DISPATCH(NGPhysicalBoxFragment) { |
34 visitor->trace(children_); | 36 visitor->trace(children_); |
35 NGPhysicalFragment::traceAfterDispatch(visitor); | 37 NGPhysicalFragment::traceAfterDispatch(visitor); |
36 } | 38 } |
37 | 39 |
38 } // namespace blink | 40 } // namespace blink |
OLD | NEW |