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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 script_(USCRIPT_INVALID_CODE), | 93 script_(USCRIPT_INVALID_CODE), |
94 fallback_priority_(FontFallbackPriority::Invalid), | 94 fallback_priority_(FontFallbackPriority::Invalid), |
95 rotate_sideways_(false), | 95 rotate_sideways_(false), |
96 style_(style) { | 96 style_(style) { |
97 DCHECK(end >= start); | 97 DCHECK(end >= start); |
98 } | 98 } |
99 | 99 |
100 unsigned StartOffset() const { return start_offset_; } | 100 unsigned StartOffset() const { return start_offset_; } |
101 unsigned EndOffset() const { return end_offset_; } | 101 unsigned EndOffset() const { return end_offset_; } |
102 TextDirection Direction() const { | 102 TextDirection Direction() const { |
103 return bidi_level_ & 1 ? TextDirection::Rtl : TextDirection::Ltr; | 103 return bidi_level_ & 1 ? TextDirection::kRtl : TextDirection::kLtr; |
104 } | 104 } |
105 UBiDiLevel BidiLevel() const { return bidi_level_; } | 105 UBiDiLevel BidiLevel() const { return bidi_level_; } |
106 UScriptCode Script() const { return script_; } | 106 UScriptCode Script() const { return script_; } |
107 const ComputedStyle* Style() const { return style_; } | 107 const ComputedStyle* Style() const { return style_; } |
108 | 108 |
109 void SetEndOffset(unsigned); | 109 void SetEndOffset(unsigned); |
110 | 110 |
111 LayoutUnit InlineSize() const; | 111 LayoutUnit InlineSize() const; |
112 | 112 |
113 static void Split(Vector<NGLayoutInlineItem>&, | 113 static void Split(Vector<NGLayoutInlineItem>&, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 171 |
172 private: | 172 private: |
173 NGLayoutInlineItem* start_item_; | 173 NGLayoutInlineItem* start_item_; |
174 unsigned size_; | 174 unsigned size_; |
175 unsigned start_index_; | 175 unsigned start_index_; |
176 }; | 176 }; |
177 | 177 |
178 } // namespace blink | 178 } // namespace blink |
179 | 179 |
180 #endif // NGInlineNode_h | 180 #endif // NGInlineNode_h |
OLD | NEW |