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 #ifndef NGPhysicalFragment_h | 5 #ifndef NGPhysicalFragment_h |
6 #define NGPhysicalFragment_h | 6 #define NGPhysicalFragment_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/ng_physical_fragment_base.h" | 9 #include "core/layout/ng/ng_physical_fragment_base.h" |
10 #include "core/layout/ng/ng_units.h" | 10 #include "core/layout/ng/ng_units.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 NGPhysicalSize overflow, | 22 NGPhysicalSize overflow, |
23 HeapVector<Member<const NGPhysicalFragmentBase>>& children, | 23 HeapVector<Member<const NGPhysicalFragmentBase>>& children, |
24 HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants, | 24 HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants, |
25 Vector<NGStaticPosition>& out_of_flow_positions, | 25 Vector<NGStaticPosition>& out_of_flow_positions, |
26 NGMarginStrut margin_strut); | 26 NGMarginStrut margin_strut); |
27 | 27 |
28 const HeapVector<Member<const NGPhysicalFragmentBase>>& Children() const { | 28 const HeapVector<Member<const NGPhysicalFragmentBase>>& Children() const { |
29 return children_; | 29 return children_; |
30 } | 30 } |
31 | 31 |
32 const HeapLinkedHashSet<WeakMember<NGBlockNode>>& OutOfFlowDescendants() | |
33 const { | |
34 return out_of_flow_descendants_; | |
35 } | |
36 | |
37 const Vector<NGStaticPosition>& OutOfFlowPositions() const { | |
38 return out_of_flow_positions_; | |
39 } | |
40 | |
41 NGMarginStrut MarginStrut() const { return margin_strut_; } | 32 NGMarginStrut MarginStrut() const { return margin_strut_; } |
42 | 33 |
43 DECLARE_TRACE_AFTER_DISPATCH(); | 34 DECLARE_TRACE_AFTER_DISPATCH(); |
44 | 35 |
45 private: | 36 private: |
46 HeapVector<Member<const NGPhysicalFragmentBase>> children_; | 37 HeapVector<Member<const NGPhysicalFragmentBase>> children_; |
47 HeapLinkedHashSet<WeakMember<NGBlockNode>> out_of_flow_descendants_; | |
48 Vector<NGStaticPosition> out_of_flow_positions_; | |
49 NGMarginStrut margin_strut_; | 38 NGMarginStrut margin_strut_; |
50 }; | 39 }; |
51 | 40 |
52 WILL_NOT_BE_EAGERLY_TRACED_CLASS(NGPhysicalFragment); | 41 WILL_NOT_BE_EAGERLY_TRACED_CLASS(NGPhysicalFragment); |
53 | 42 |
54 DEFINE_TYPE_CASTS(NGPhysicalFragment, | 43 DEFINE_TYPE_CASTS(NGPhysicalFragment, |
55 NGPhysicalFragmentBase, | 44 NGPhysicalFragmentBase, |
56 fragment, | 45 fragment, |
57 fragment->Type() == NGPhysicalFragmentBase::kFragmentBox, | 46 fragment->Type() == NGPhysicalFragmentBase::kFragmentBox, |
58 fragment.Type() == NGPhysicalFragmentBase::kFragmentBox); | 47 fragment.Type() == NGPhysicalFragmentBase::kFragmentBox); |
59 | 48 |
60 } // namespace blink | 49 } // namespace blink |
61 | 50 |
62 #endif // NGPhysicalFragment_h | 51 #endif // NGPhysicalFragment_h |
OLD | NEW |