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