OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "core/layout/ng/ng_physical_fragment.h" |
| 6 #include "core/layout/ng/ng_block_layout_algorithm.h" |
| 7 #include "core/layout/ng/ng_box.h" |
| 8 #include "core/style/ComputedStyle.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 NGPhysicalFragment::NGPhysicalFragment( |
| 13 NGPhysicalSize size, |
| 14 NGPhysicalSize overflow, |
| 15 HeapVector<Member<const NGPhysicalFragmentBase>>& children, |
| 16 NGMarginStrut margin_strut) |
| 17 : NGPhysicalFragmentBase(size, overflow, FragmentBox), |
| 18 margin_strut_(margin_strut) { |
| 19 children_.swap(children); |
| 20 } |
| 21 |
| 22 DEFINE_TRACE_AFTER_DISPATCH(NGPhysicalFragment) { |
| 23 visitor->trace(children_); |
| 24 NGPhysicalFragmentBase::traceAfterDispatch(visitor); |
| 25 } |
| 26 |
| 27 } // namespace blink |
OLD | NEW |