| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 public: | 157 public: |
| 158 // Useful for debugging the different font rendering code paths. | 158 // Useful for debugging the different font rendering code paths. |
| 159 static void setCodePath(CodePath); | 159 static void setCodePath(CodePath); |
| 160 static CodePath codePath(); | 160 static CodePath codePath(); |
| 161 static CodePath s_codePath; | 161 static CodePath s_codePath; |
| 162 | 162 |
| 163 FontSelector* fontSelector() const; | 163 FontSelector* fontSelector() const; |
| 164 | 164 |
| 165 FontFallbackList* fontList() const { return m_fontFallbackList.get(); } | 165 FontFallbackList* fontList() const { return m_fontFallbackList.get(); } |
| 166 | 166 |
| 167 void willUseFontData() const; | 167 void willUseFontData(UChar32) const; |
| 168 | 168 |
| 169 static FloatRect pixelSnappedSelectionRect(float fromX, float toX, float y,
float height); | 169 static FloatRect pixelSnappedSelectionRect(float fromX, float toX, float y,
float height); |
| 170 private: | 170 private: |
| 171 bool loadingCustomFonts() const | 171 bool loadingCustomFonts() const |
| 172 { | 172 { |
| 173 return m_fontFallbackList && m_fontFallbackList->loadingCustomFonts(); | 173 return m_fontFallbackList && m_fontFallbackList->loadingCustomFonts(); |
| 174 } | 174 } |
| 175 | 175 |
| 176 bool shouldSkipDrawing() const | 176 bool shouldSkipDrawing() const |
| 177 { | 177 { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 { | 213 { |
| 214 if (!tabSize) | 214 if (!tabSize) |
| 215 return fontDescription().letterSpacing(); | 215 return fontDescription().letterSpacing(); |
| 216 float tabWidth = tabSize * fontData.spaceWidth() + fontDescription().letterS
pacing(); | 216 float tabWidth = tabSize * fontData.spaceWidth() + fontDescription().letterS
pacing(); |
| 217 return tabWidth - fmodf(position, tabWidth); | 217 return tabWidth - fmodf(position, tabWidth); |
| 218 } | 218 } |
| 219 | 219 |
| 220 } | 220 } |
| 221 | 221 |
| 222 #endif | 222 #endif |
| OLD | NEW |