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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 unsigned textStartOffset() const | 147 unsigned textStartOffset() const |
148 { | 148 { |
149 return toText()->textStartOffset(); | 149 return toText()->textStartOffset(); |
150 } | 150 } |
151 | 151 |
152 float minLogicalWidth() const | 152 float minLogicalWidth() const |
153 { | 153 { |
154 return toText()->minLogicalWidth(); | 154 return toText()->minLogicalWidth(); |
155 } | 155 } |
156 | 156 |
157 void applyTextTransformFromTo(int from, int len, const ComputedStyle* style) | |
158 { | |
159 toText()->applyTextTransformFromTo(from, len, style); | |
160 } | |
161 | |
162 private: | 157 private: |
163 LayoutText* toText() { return toLayoutText(layoutObject()); } | 158 LayoutText* toText() { return toLayoutText(layoutObject()); } |
164 const LayoutText* toText() const { return toLayoutText(layoutObject()); } | 159 const LayoutText* toText() const { return toLayoutText(layoutObject()); } |
165 }; | 160 }; |
166 | 161 |
167 } // namespace blink | 162 } // namespace blink |
168 | 163 |
169 #endif // LineLayoutText_h | 164 #endif // LineLayoutText_h |
OLD | NEW |