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

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

Issue 2561553002: [LayoutNG] Remove unnecessary #includes (Closed)
Patch Set: Let's see if Windows is more happy now. Created 4 years 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_fragment.h" 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_block_node.h"
8 #include "core/style/ComputedStyle.h"
9 6
10 namespace blink { 7 namespace blink {
11 8
12 NGPhysicalFragment::NGPhysicalFragment( 9 NGPhysicalFragment::NGPhysicalFragment(
13 NGPhysicalSize size, 10 NGPhysicalSize size,
14 NGPhysicalSize overflow, 11 NGPhysicalSize overflow,
15 HeapVector<Member<const NGPhysicalFragmentBase>>& children, 12 HeapVector<Member<const NGPhysicalFragmentBase>>& children,
16 HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants, 13 HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants,
17 Vector<NGStaticPosition>& out_of_flow_positions, 14 Vector<NGStaticPosition>& out_of_flow_positions,
18 NGMarginStrut margin_strut) 15 NGMarginStrut margin_strut)
19 : NGPhysicalFragmentBase(size, 16 : NGPhysicalFragmentBase(size,
20 overflow, 17 overflow,
21 kFragmentBox, 18 kFragmentBox,
22 out_of_flow_descendants, 19 out_of_flow_descendants,
23 out_of_flow_positions), 20 out_of_flow_positions),
24 margin_strut_(margin_strut) { 21 margin_strut_(margin_strut) {
25 children_.swap(children); 22 children_.swap(children);
26 } 23 }
27 24
28 DEFINE_TRACE_AFTER_DISPATCH(NGPhysicalFragment) { 25 DEFINE_TRACE_AFTER_DISPATCH(NGPhysicalFragment) {
29 visitor->trace(children_); 26 visitor->trace(children_);
30 NGPhysicalFragmentBase::traceAfterDispatch(visitor); 27 NGPhysicalFragmentBase::traceAfterDispatch(visitor);
31 } 28 }
32 29
33 } // namespace blink 30 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698