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_fragment.h" | 5 #include "core/layout/ng/ng_physical_box_fragment.h" |
6 | 6 |
7 namespace blink { | 7 namespace blink { |
8 | 8 |
9 NGPhysicalFragment::NGPhysicalFragment( | 9 NGPhysicalBoxFragment::NGPhysicalBoxFragment( |
10 NGPhysicalSize size, | 10 NGPhysicalSize size, |
11 NGPhysicalSize overflow, | 11 NGPhysicalSize overflow, |
12 HeapVector<Member<const NGPhysicalFragmentBase>>& children, | 12 HeapVector<Member<const NGPhysicalFragment>>& children, |
13 HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants, | 13 HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants, |
14 Vector<NGStaticPosition>& out_of_flow_positions, | 14 Vector<NGStaticPosition>& out_of_flow_positions, |
15 NGMarginStrut margin_strut) | 15 NGMarginStrut margin_strut) |
16 : NGPhysicalFragmentBase(size, | 16 : NGPhysicalFragment(size, |
17 overflow, | 17 overflow, |
18 kFragmentBox, | 18 kFragmentBox, |
19 out_of_flow_descendants, | 19 out_of_flow_descendants, |
20 out_of_flow_positions), | 20 out_of_flow_positions), |
21 margin_strut_(margin_strut) { | 21 margin_strut_(margin_strut) { |
22 children_.swap(children); | 22 children_.swap(children); |
23 } | 23 } |
24 | 24 |
25 DEFINE_TRACE_AFTER_DISPATCH(NGPhysicalFragment) { | 25 DEFINE_TRACE_AFTER_DISPATCH(NGPhysicalBoxFragment) { |
26 visitor->trace(children_); | 26 visitor->trace(children_); |
27 NGPhysicalFragmentBase::traceAfterDispatch(visitor); | 27 NGPhysicalFragment::traceAfterDispatch(visitor); |
28 } | 28 } |
29 | 29 |
30 } // namespace blink | 30 } // namespace blink |
OLD | NEW |