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

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

Issue 2651853002: Deprecate the currently used NGMarginStrut in favor of the new one. (Closed)
Patch Set: git rebase-update Created 3 years, 10 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 namespace blink { 7 namespace blink {
8 8
9 NGPhysicalBoxFragment::NGPhysicalBoxFragment( 9 NGPhysicalBoxFragment::NGPhysicalBoxFragment(
10 NGPhysicalSize size, 10 NGPhysicalSize size,
11 NGPhysicalSize overflow, 11 NGPhysicalSize overflow,
12 HeapVector<Member<const NGPhysicalFragment>>& 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 NGDeprecatedMarginStrut margin_strut,
16 HeapVector<Member<NGFloatingObject>>& unpositioned_floats, 16 HeapVector<Member<NGFloatingObject>>& unpositioned_floats,
17 HeapVector<Member<NGFloatingObject>>& positioned_floats, 17 HeapVector<Member<NGFloatingObject>>& positioned_floats,
18 NGBreakToken* break_token) 18 NGBreakToken* break_token)
19 : NGPhysicalFragment(size, 19 : NGPhysicalFragment(size,
20 overflow, 20 overflow,
21 kFragmentBox, 21 kFragmentBox,
22 out_of_flow_descendants, 22 out_of_flow_descendants,
23 out_of_flow_positions, 23 out_of_flow_positions,
24 unpositioned_floats, 24 unpositioned_floats,
25 positioned_floats, 25 positioned_floats,
26 break_token), 26 break_token),
27 margin_strut_(margin_strut) { 27 margin_strut_(margin_strut) {
28 children_.swap(children); 28 children_.swap(children);
29 } 29 }
30 30
31 DEFINE_TRACE_AFTER_DISPATCH(NGPhysicalBoxFragment) { 31 DEFINE_TRACE_AFTER_DISPATCH(NGPhysicalBoxFragment) {
32 visitor->trace(children_); 32 visitor->trace(children_);
33 NGPhysicalFragment::traceAfterDispatch(visitor); 33 NGPhysicalFragment::traceAfterDispatch(visitor);
34 } 34 }
35 35
36 } // namespace blink 36 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698