OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2006, 2007, 2011 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2006, 2007, 2011 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 float horizontalGlyphStretch() const { return m_horizontalGlyphStretch; } | 166 float horizontalGlyphStretch() const { return m_horizontalGlyphStretch; } |
167 void setHorizontalGlyphStretch(float scale) { m_horizontalGlyphStretch = sca
le; } | 167 void setHorizontalGlyphStretch(float scale) { m_horizontalGlyphStretch = sca
le; } |
168 | 168 |
169 bool allowTabs() const { return m_allowTabs; } | 169 bool allowTabs() const { return m_allowTabs; } |
170 TabSize getTabSize() const { return m_tabSize; } | 170 TabSize getTabSize() const { return m_tabSize; } |
171 void setTabSize(bool, TabSize); | 171 void setTabSize(bool, TabSize); |
172 | 172 |
173 float xPos() const { return m_xpos; } | 173 float xPos() const { return m_xpos; } |
174 void setXPos(float xPos) { m_xpos = xPos; } | 174 void setXPos(float xPos) { m_xpos = xPos; } |
175 float expansion() const { return m_expansion; } | 175 float expansion() const { return m_expansion; } |
| 176 void setExpansion(float expansion) { m_expansion = expansion; } |
176 bool allowsLeadingExpansion() const { return m_expansionBehavior & AllowLead
ingExpansion; } | 177 bool allowsLeadingExpansion() const { return m_expansionBehavior & AllowLead
ingExpansion; } |
177 bool allowsTrailingExpansion() const { return m_expansionBehavior & AllowTra
ilingExpansion; } | 178 bool allowsTrailingExpansion() const { return m_expansionBehavior & AllowTra
ilingExpansion; } |
178 TextDirection direction() const { return static_cast<TextDirection>(m_direct
ion); } | 179 TextDirection direction() const { return static_cast<TextDirection>(m_direct
ion); } |
179 bool rtl() const { return m_direction == RTL; } | 180 bool rtl() const { return m_direction == RTL; } |
180 bool ltr() const { return m_direction == LTR; } | 181 bool ltr() const { return m_direction == LTR; } |
181 bool directionalOverride() const { return m_directionalOverride; } | 182 bool directionalOverride() const { return m_directionalOverride; } |
182 bool spacingDisabled() const { return m_disableSpacing; } | 183 bool spacingDisabled() const { return m_disableSpacing; } |
183 | 184 |
184 void disableSpacing() { m_disableSpacing = true; } | 185 void disableSpacing() { m_disableSpacing = true; } |
185 void setDirection(TextDirection direction) { m_direction = direction; } | 186 void setDirection(TextDirection direction) { m_direction = direction; } |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 235 |
235 const TextRun& run; | 236 const TextRun& run; |
236 unsigned from; | 237 unsigned from; |
237 unsigned to; | 238 unsigned to; |
238 FloatRect bounds; | 239 FloatRect bounds; |
239 RefPtr<const SkTextBlob>* cachedTextBlob; | 240 RefPtr<const SkTextBlob>* cachedTextBlob; |
240 }; | 241 }; |
241 | 242 |
242 } // namespace blink | 243 } // namespace blink |
243 #endif | 244 #endif |
OLD | NEW |