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/LayoutBlockFlow.h" | 9 #include "core/layout/LayoutBlockFlow.h" |
10 #include "core/layout/ng/ng_layout_input_node.h" | 10 #include "core/layout/ng/ng_layout_input_node.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 unsigned StartOffset() const { return start_offset_; } | 130 unsigned StartOffset() const { return start_offset_; } |
131 unsigned EndOffset() const { return end_offset_; } | 131 unsigned EndOffset() const { return end_offset_; } |
132 TextDirection Direction() const { | 132 TextDirection Direction() const { |
133 return bidi_level_ & 1 ? TextDirection::kRtl : TextDirection::kLtr; | 133 return bidi_level_ & 1 ? TextDirection::kRtl : TextDirection::kLtr; |
134 } | 134 } |
135 UBiDiLevel BidiLevel() const { return bidi_level_; } | 135 UBiDiLevel BidiLevel() const { return bidi_level_; } |
136 UScriptCode Script() const { return script_; } | 136 UScriptCode Script() const { return script_; } |
137 const ComputedStyle* Style() const { return style_; } | 137 const ComputedStyle* Style() const { return style_; } |
138 LayoutObject* GetLayoutObject() const { return layout_object_; } | 138 LayoutObject* GetLayoutObject() const { return layout_object_; } |
139 | 139 |
| 140 bool IsAtomicInlineLevel() const { |
| 141 return layout_object_ && layout_object_->isAtomicInlineLevel(); |
| 142 } |
| 143 |
140 void SetEndOffset(unsigned); | 144 void SetEndOffset(unsigned); |
141 | 145 |
142 LayoutUnit InlineSize() const; | 146 LayoutUnit InlineSize() const; |
143 LayoutUnit InlineSize(unsigned start, unsigned end) const; | 147 LayoutUnit InlineSize(unsigned start, unsigned end) const; |
144 | 148 |
145 void GetFallbackFonts(HashSet<const SimpleFontData*>*, | 149 void GetFallbackFonts(HashSet<const SimpleFontData*>*, |
146 unsigned start, | 150 unsigned start, |
147 unsigned end) const; | 151 unsigned end) const; |
148 | 152 |
149 static void Split(Vector<NGLayoutInlineItem>&, | 153 static void Split(Vector<NGLayoutInlineItem>&, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 232 |
229 private: | 233 private: |
230 NGLayoutInlineItem* start_item_; | 234 NGLayoutInlineItem* start_item_; |
231 unsigned size_; | 235 unsigned size_; |
232 unsigned start_index_; | 236 unsigned start_index_; |
233 }; | 237 }; |
234 | 238 |
235 } // namespace blink | 239 } // namespace blink |
236 | 240 |
237 #endif // NGInlineNode_h | 241 #endif // NGInlineNode_h |
OLD | NEW |