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 NGInlineLayoutAlgorithm_h | 5 #ifndef NGInlineLayoutAlgorithm_h |
6 #define NGInlineLayoutAlgorithm_h | 6 #define NGInlineLayoutAlgorithm_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/inline/ng_inline_break_token.h" | 10 #include "core/layout/ng/inline/ng_inline_break_token.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 unsigned start_index_ = 0; | 144 unsigned start_index_ = 0; |
145 unsigned start_offset_ = 0; | 145 unsigned start_offset_ = 0; |
146 unsigned last_index_ = 0; | 146 unsigned last_index_ = 0; |
147 unsigned end_offset_ = 0; | 147 unsigned end_offset_ = 0; |
148 unsigned last_break_opportunity_index_ = 0; | 148 unsigned last_break_opportunity_index_ = 0; |
149 unsigned last_break_opportunity_offset_ = 0; | 149 unsigned last_break_opportunity_offset_ = 0; |
150 LayoutUnit end_position_; | 150 LayoutUnit end_position_; |
151 LayoutUnit last_break_opportunity_position_; | 151 LayoutUnit last_break_opportunity_position_; |
152 LayoutUnit content_size_; | 152 LayoutUnit content_size_; |
153 LayoutUnit max_inline_size_; | 153 LayoutUnit max_inline_size_; |
154 NGFragmentBuilder container_builder_; | |
155 FontBaseline baseline_type_ = FontBaseline::kAlphabeticBaseline; | 154 FontBaseline baseline_type_ = FontBaseline::kAlphabeticBaseline; |
156 | 155 |
157 NGLogicalOffset bfc_offset_; | 156 NGLogicalOffset bfc_offset_; |
158 NGLogicalRect current_opportunity_; | 157 NGLogicalRect current_opportunity_; |
159 | 158 |
160 unsigned is_horizontal_writing_mode_ : 1; | 159 unsigned is_horizontal_writing_mode_ : 1; |
161 unsigned disallow_first_line_rules_ : 1; | 160 unsigned disallow_first_line_rules_ : 1; |
162 | 161 |
163 NGConstraintSpaceBuilder space_builder_; | 162 NGConstraintSpaceBuilder space_builder_; |
164 #if DCHECK_IS_ON() | 163 #if DCHECK_IS_ON() |
165 unsigned is_bidi_reordered_ : 1; | 164 unsigned is_bidi_reordered_ : 1; |
166 #endif | 165 #endif |
167 }; | 166 }; |
168 | 167 |
169 } // namespace blink | 168 } // namespace blink |
170 | 169 |
171 #endif // NGInlineLayoutAlgorithm_h | 170 #endif // NGInlineLayoutAlgorithm_h |
OLD | NEW |