Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.cc

Issue 2764753007: [LayoutNG] Add NGLineBoxFragment (Closed)
Patch Set: Rebase again as other CLs landed faster Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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<RefPtr<NGFloatingObject>>& positioned_floats, 16 Vector<RefPtr<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 RefPtr<NGBreakToken> break_token) 19 RefPtr<NGBreakToken> break_token)
20 : NGPhysicalFragment(layout_object, 20 : NGPhysicalFragment(layout_object,
21 size, 21 size,
22 overflow,
23 kFragmentBox, 22 kFragmentBox,
24 std::move(break_token)), 23 std::move(break_token)),
24 overflow_(overflow),
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698