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, 2010, 2011 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2006, 2007, 2010, 2011 Apple Inc. All rights reserved. |
6 * Copyright (C) 2008 Holger Hans Peter Freyther | 6 * Copyright (C) 2008 Holger Hans Peter Freyther |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 bool computeCanShapeWordByWord() const; | 139 bool computeCanShapeWordByWord() const; |
140 | 140 |
141 friend struct SimpleShaper; | 141 friend struct SimpleShaper; |
142 | 142 |
143 public: | 143 public: |
144 FontSelector* getFontSelector() const; | 144 FontSelector* getFontSelector() const; |
145 PassRefPtr<FontFallbackIterator> createFontFallbackIterator( | 145 PassRefPtr<FontFallbackIterator> createFontFallbackIterator( |
146 FontFallbackPriority) const; | 146 FontFallbackPriority) const; |
147 | 147 |
148 void willUseFontData(UChar32) const; | 148 void willUseFontData(const String& text) const; |
149 | 149 |
150 bool loadingCustomFonts() const; | 150 bool loadingCustomFonts() const; |
151 bool isFallbackValid() const; | 151 bool isFallbackValid() const; |
152 | 152 |
153 private: | 153 private: |
154 bool shouldSkipDrawing() const | 154 bool shouldSkipDrawing() const |
155 { | 155 { |
156 return m_fontFallbackList && m_fontFallbackList->shouldSkipDrawing(); | 156 return m_fontFallbackList && m_fontFallbackList->shouldSkipDrawing(); |
157 } | 157 } |
158 | 158 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // if the distance to the next tab stop is less than that, advance an additi
onal tab stop. | 197 // if the distance to the next tab stop is less than that, advance an additi
onal tab stop. |
198 if (distanceToTabStop < std::max(getFontDescription().letterSpacing(), Layou
tUnit::epsilon())) | 198 if (distanceToTabStop < std::max(getFontDescription().letterSpacing(), Layou
tUnit::epsilon())) |
199 distanceToTabStop += baseTabWidth; | 199 distanceToTabStop += baseTabWidth; |
200 | 200 |
201 return distanceToTabStop; | 201 return distanceToTabStop; |
202 } | 202 } |
203 | 203 |
204 } // namespace blink | 204 } // namespace blink |
205 | 205 |
206 #endif | 206 #endif |
OLD | NEW |