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_units.h" | 9 #include "core/layout/ng/ng_units.h" |
10 #include "platform/LayoutUnit.h" | 10 #include "platform/LayoutUnit.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 return offset_.top; | 54 return offset_.top; |
55 } | 55 } |
56 | 56 |
57 // Should only be used by the parent fragement's layout. | 57 // Should only be used by the parent fragement's layout. |
58 void SetOffset(NGPhysicalOffset offset) { | 58 void SetOffset(NGPhysicalOffset offset) { |
59 DCHECK(!has_been_placed_); | 59 DCHECK(!has_been_placed_); |
60 offset_ = offset; | 60 offset_ = offset; |
61 has_been_placed_ = true; | 61 has_been_placed_ = true; |
62 } | 62 } |
63 | 63 |
| 64 NGBreakToken* BreakToken() const { return break_token_; } |
| 65 |
64 const HeapLinkedHashSet<WeakMember<NGBlockNode>>& OutOfFlowDescendants() | 66 const HeapLinkedHashSet<WeakMember<NGBlockNode>>& OutOfFlowDescendants() |
65 const { | 67 const { |
66 return out_of_flow_descendants_; | 68 return out_of_flow_descendants_; |
67 } | 69 } |
68 | 70 |
69 const Vector<NGStaticPosition>& OutOfFlowPositions() const { | 71 const Vector<NGStaticPosition>& OutOfFlowPositions() const { |
70 return out_of_flow_positions_; | 72 return out_of_flow_positions_; |
71 } | 73 } |
72 | 74 |
73 DECLARE_TRACE_AFTER_DISPATCH(); | 75 DECLARE_TRACE_AFTER_DISPATCH(); |
(...skipping 17 matching lines...) Expand all Loading... |
91 HeapLinkedHashSet<WeakMember<NGBlockNode>> out_of_flow_descendants_; | 93 HeapLinkedHashSet<WeakMember<NGBlockNode>> out_of_flow_descendants_; |
92 Vector<NGStaticPosition> out_of_flow_positions_; | 94 Vector<NGStaticPosition> out_of_flow_positions_; |
93 | 95 |
94 unsigned type_ : 1; | 96 unsigned type_ : 1; |
95 unsigned has_been_placed_ : 1; | 97 unsigned has_been_placed_ : 1; |
96 }; | 98 }; |
97 | 99 |
98 } // namespace blink | 100 } // namespace blink |
99 | 101 |
100 #endif // NGPhysicalFragment_h | 102 #endif // NGPhysicalFragment_h |
OLD | NEW |