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 NGLineBuilder_h | 5 #ifndef NGLineBuilder_h |
6 #define NGLineBuilder_h | 6 #define NGLineBuilder_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/geometry/ng_logical_offset.h" | 9 #include "core/layout/ng/geometry/ng_logical_offset.h" |
10 #include "core/layout/ng/ng_layout_opportunity_iterator.h" | 10 #include "core/layout/ng/ng_layout_opportunity_iterator.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 float max_descent_and_leading = 0; | 132 float max_descent_and_leading = 0; |
133 | 133 |
134 // Include |InlineItemMetrics| into the metrics for this line box. | 134 // Include |InlineItemMetrics| into the metrics for this line box. |
135 void UpdateMaxAscentAndDescent(const InlineItemMetrics&); | 135 void UpdateMaxAscentAndDescent(const InlineItemMetrics&); |
136 }; | 136 }; |
137 | 137 |
138 void PlaceItems(const Vector<LineItemChunk, 32>&); | 138 void PlaceItems(const Vector<LineItemChunk, 32>&); |
139 void AccumulateUsedFonts(const NGLayoutInlineItem&, | 139 void AccumulateUsedFonts(const NGLayoutInlineItem&, |
140 const LineItemChunk&, | 140 const LineItemChunk&, |
141 LineBoxData*); | 141 LineBoxData*); |
| 142 LayoutUnit PlaceAtomicInline(const NGLayoutInlineItem&, |
| 143 LayoutUnit estimated_baseline, |
| 144 LineBoxData*, |
| 145 NGFragmentBuilder*); |
142 | 146 |
143 // Finds the next layout opportunity for the next text fragment. | 147 // Finds the next layout opportunity for the next text fragment. |
144 void FindNextLayoutOpportunity(); | 148 void FindNextLayoutOpportunity(); |
145 | 149 |
146 Persistent<NGInlineNode> inline_box_; | 150 Persistent<NGInlineNode> inline_box_; |
147 NGConstraintSpace* constraint_space_; // Not owned as STACK_ALLOCATED. | 151 NGConstraintSpace* constraint_space_; // Not owned as STACK_ALLOCATED. |
148 NGFragmentBuilder* containing_block_builder_; | 152 NGFragmentBuilder* containing_block_builder_; |
149 Vector<RefPtr<NGPhysicalFragment>, 32> fragments_; | 153 Vector<RefPtr<NGPhysicalFragment>, 32> fragments_; |
150 Vector<NGLogicalOffset, 32> offsets_; | 154 Vector<NGLogicalOffset, 32> offsets_; |
151 Vector<LineBoxData, 32> line_box_data_list_; | 155 Vector<LineBoxData, 32> line_box_data_list_; |
(...skipping 13 matching lines...) Expand all Loading... |
165 NGLogicalRect current_opportunity_; | 169 NGLogicalRect current_opportunity_; |
166 | 170 |
167 #if DCHECK_IS_ON() | 171 #if DCHECK_IS_ON() |
168 unsigned is_bidi_reordered_ : 1; | 172 unsigned is_bidi_reordered_ : 1; |
169 #endif | 173 #endif |
170 }; | 174 }; |
171 | 175 |
172 } // namespace blink | 176 } // namespace blink |
173 | 177 |
174 #endif // NGLineBuilder_h | 178 #endif // NGLineBuilder_h |
OLD | NEW |