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 NGFragmentBuilder_h | 5 #ifndef NGFragmentBuilder_h |
6 #define NGFragmentBuilder_h | 6 #define NGFragmentBuilder_h |
7 | 7 |
8 #include "core/layout/ng/ng_fragment.h" | 8 #include "core/layout/ng/ng_physical_fragment_base.h" |
9 #include "core/layout/ng/ng_units.h" | 9 #include "core/layout/ng/ng_units.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
| 13 class NGFragmentBase; |
| 14 class NGPhysicalFragment; |
| 15 |
13 class CORE_EXPORT NGFragmentBuilder final | 16 class CORE_EXPORT NGFragmentBuilder final |
14 : public GarbageCollectedFinalized<NGFragmentBuilder> { | 17 : public GarbageCollectedFinalized<NGFragmentBuilder> { |
15 public: | 18 public: |
16 NGFragmentBuilder(NGPhysicalFragmentBase::NGFragmentType); | 19 NGFragmentBuilder(NGPhysicalFragmentBase::NGFragmentType); |
17 | 20 |
18 using WeakBoxList = HeapLinkedHashSet<WeakMember<NGBlockNode>>; | 21 using WeakBoxList = HeapLinkedHashSet<WeakMember<NGBlockNode>>; |
19 | 22 |
20 NGFragmentBuilder& SetWritingMode(NGWritingMode); | 23 NGFragmentBuilder& SetWritingMode(NGWritingMode); |
21 NGFragmentBuilder& SetDirection(TextDirection); | 24 NGFragmentBuilder& SetDirection(TextDirection); |
22 | 25 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 WeakBoxList out_of_flow_descendant_candidates_; | 118 WeakBoxList out_of_flow_descendant_candidates_; |
116 Vector<OutOfFlowPlacement> out_of_flow_candidate_placements_; | 119 Vector<OutOfFlowPlacement> out_of_flow_candidate_placements_; |
117 | 120 |
118 WeakBoxList out_of_flow_descendants_; | 121 WeakBoxList out_of_flow_descendants_; |
119 Vector<NGStaticPosition> out_of_flow_positions_; | 122 Vector<NGStaticPosition> out_of_flow_positions_; |
120 }; | 123 }; |
121 | 124 |
122 } // namespace blink | 125 } // namespace blink |
123 | 126 |
124 #endif // NGFragmentBuilder | 127 #endif // NGFragmentBuilder |
OLD | NEW |