OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 LineLayoutText_h | 5 #ifndef LineLayoutText_h |
6 #define LineLayoutText_h | 6 #define LineLayoutText_h |
7 | 7 |
8 #include "core/layout/LayoutText.h" | 8 #include "core/layout/LayoutText.h" |
9 #include "core/layout/api/LineLayoutItem.h" | 9 #include "core/layout/api/LineLayoutItem.h" |
10 #include "platform/LayoutUnit.h" | 10 #include "platform/LayoutUnit.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 UChar characterAt(unsigned offset) const | 60 UChar characterAt(unsigned offset) const |
61 { | 61 { |
62 return toText()->characterAt(offset); | 62 return toText()->characterAt(offset); |
63 } | 63 } |
64 | 64 |
65 UChar uncheckedCharacterAt(unsigned offset) const | 65 UChar uncheckedCharacterAt(unsigned offset) const |
66 { | 66 { |
67 return toText()->uncheckedCharacterAt(offset); | 67 return toText()->uncheckedCharacterAt(offset); |
68 } | 68 } |
69 | 69 |
| 70 UChar32 codepointAt(unsigned offset) const |
| 71 { |
| 72 return toText()->codepointAt(offset); |
| 73 } |
| 74 |
70 bool is8Bit() const | 75 bool is8Bit() const |
71 { | 76 { |
72 return toText()->is8Bit(); | 77 return toText()->is8Bit(); |
73 } | 78 } |
74 | 79 |
75 const LChar* characters8() const | 80 const LChar* characters8() const |
76 { | 81 { |
77 return toText()->characters8(); | 82 return toText()->characters8(); |
78 } | 83 } |
79 | 84 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 } | 143 } |
139 | 144 |
140 private: | 145 private: |
141 LayoutText* toText() { return toLayoutText(layoutObject()); } | 146 LayoutText* toText() { return toLayoutText(layoutObject()); } |
142 const LayoutText* toText() const { return toLayoutText(layoutObject()); } | 147 const LayoutText* toText() const { return toLayoutText(layoutObject()); } |
143 }; | 148 }; |
144 | 149 |
145 } // namespace blink | 150 } // namespace blink |
146 | 151 |
147 #endif // LineLayoutText_h | 152 #endif // LineLayoutText_h |
OLD | NEW |