| 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 #include "core/layout/ng/ng_floating_object.h" | 7 #include "core/layout/ng/ng_floating_object.h" |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| 11 NGPhysicalBoxFragment::NGPhysicalBoxFragment( | 11 NGPhysicalBoxFragment::NGPhysicalBoxFragment( |
| 12 LayoutObject* layout_object, | 12 LayoutObject* layout_object, |
| 13 NGPhysicalSize size, | 13 NGPhysicalSize size, |
| 14 NGPhysicalSize overflow, | 14 NGPhysicalSize overflow, |
| 15 Vector<RefPtr<NGPhysicalFragment>>& children, | 15 Vector<RefPtr<NGPhysicalFragment>>& children, |
| 16 Vector<Persistent<NGFloatingObject>>& positioned_floats, | 16 Vector<Persistent<NGFloatingObject>>& positioned_floats, |
| 17 const WTF::Optional<NGLogicalOffset>& bfc_offset, | 17 const WTF::Optional<NGLogicalOffset>& bfc_offset, |
| 18 const NGMarginStrut& end_margin_strut, | 18 const NGMarginStrut& end_margin_strut, |
| 19 NGBreakToken* break_token) | 19 RefPtr<NGBreakToken> break_token) |
| 20 : NGPhysicalFragment(layout_object, | 20 : NGPhysicalFragment(layout_object, |
| 21 size, | 21 size, |
| 22 overflow, | 22 overflow, |
| 23 kFragmentBox, | 23 kFragmentBox, |
| 24 break_token), | 24 std::move(break_token)), |
| 25 positioned_floats_(positioned_floats), | 25 positioned_floats_(positioned_floats), |
| 26 bfc_offset_(bfc_offset), | 26 bfc_offset_(bfc_offset), |
| 27 end_margin_strut_(end_margin_strut) { | 27 end_margin_strut_(end_margin_strut) { |
| 28 children_.swap(children); | 28 children_.swap(children); |
| 29 } | 29 } |
| 30 | 30 |
| 31 } // namespace blink | 31 } // namespace blink |
| OLD | NEW |