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 NGInlineNode_h | 5 #ifndef NGInlineNode_h |
6 #define NGInlineNode_h | 6 #define NGInlineNode_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/ng_layout_input_node.h" | 9 #include "core/layout/ng/ng_layout_input_node.h" |
10 #include "platform/fonts/FontFallbackPriority.h" | 10 #include "platform/fonts/FontFallbackPriority.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 void AssertEndOffset(unsigned offset) const; | 136 void AssertEndOffset(unsigned offset) const; |
137 | 137 |
138 private: | 138 private: |
139 unsigned start_offset_; | 139 unsigned start_offset_; |
140 unsigned end_offset_; | 140 unsigned end_offset_; |
141 UBiDiLevel bidi_level_; | 141 UBiDiLevel bidi_level_; |
142 UScriptCode script_; | 142 UScriptCode script_; |
143 FontFallbackPriority fallback_priority_; | 143 FontFallbackPriority fallback_priority_; |
144 bool rotate_sideways_; | 144 bool rotate_sideways_; |
145 const ComputedStyle* style_; | 145 const ComputedStyle* style_; |
146 Vector<RefPtr<const ShapeResult>, 64> shape_results_; | 146 RefPtr<const ShapeResult> shape_result_; |
147 LayoutObject* layout_object_; | 147 LayoutObject* layout_object_; |
148 | 148 |
149 friend class NGInlineNode; | 149 friend class NGInlineNode; |
150 }; | 150 }; |
151 | 151 |
152 inline void NGLayoutInlineItem::AssertOffset(unsigned offset) const { | 152 inline void NGLayoutInlineItem::AssertOffset(unsigned offset) const { |
153 DCHECK(offset >= start_offset_ && offset < end_offset_); | 153 DCHECK(offset >= start_offset_ && offset < end_offset_); |
154 } | 154 } |
155 | 155 |
156 inline void NGLayoutInlineItem::AssertEndOffset(unsigned offset) const { | 156 inline void NGLayoutInlineItem::AssertEndOffset(unsigned offset) const { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 206 |
207 private: | 207 private: |
208 NGLayoutInlineItem* start_item_; | 208 NGLayoutInlineItem* start_item_; |
209 unsigned size_; | 209 unsigned size_; |
210 unsigned start_index_; | 210 unsigned start_index_; |
211 }; | 211 }; |
212 | 212 |
213 } // namespace blink | 213 } // namespace blink |
214 | 214 |
215 #endif // NGInlineNode_h | 215 #endif // NGInlineNode_h |
OLD | NEW |