| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 171 |
| 172 private: | 172 private: |
| 173 enum ForTextEmphasisOrNot { NotForTextEmphasis, ForTextEmphasis }; | 173 enum ForTextEmphasisOrNot { NotForTextEmphasis, ForTextEmphasis }; |
| 174 | 174 |
| 175 // Returns the total advance. | 175 // Returns the total advance. |
| 176 float buildGlyphBuffer(const TextRunPaintInfo&, | 176 float buildGlyphBuffer(const TextRunPaintInfo&, |
| 177 GlyphBuffer&, | 177 GlyphBuffer&, |
| 178 const GlyphData* emphasisData = nullptr) const; | 178 const GlyphData* emphasisData = nullptr) const; |
| 179 void drawGlyphBuffer(PaintCanvas*, | 179 void drawGlyphBuffer(PaintCanvas*, |
| 180 const PaintFlags&, | 180 const PaintFlags&, |
| 181 const TextRunPaintInfo&, | |
| 182 const GlyphBuffer&, | 181 const GlyphBuffer&, |
| 183 const FloatPoint&, | 182 const FloatPoint&, |
| 184 float deviceScaleFactor) const; | 183 float deviceScaleFactor) const; |
| 185 | 184 |
| 186 bool getEmphasisMarkGlyphData(const AtomicString&, GlyphData&) const; | 185 bool getEmphasisMarkGlyphData(const AtomicString&, GlyphData&) const; |
| 187 | 186 |
| 188 bool computeCanShapeWordByWord() const; | 187 bool computeCanShapeWordByWord() const; |
| 189 | 188 |
| 190 friend struct SimpleShaper; | 189 friend struct SimpleShaper; |
| 191 | 190 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 // advance an additional tab stop. | 244 // advance an additional tab stop. |
| 246 if (distanceToTabStop < fontData->spaceWidth() / 2) | 245 if (distanceToTabStop < fontData->spaceWidth() / 2) |
| 247 distanceToTabStop += baseTabWidth; | 246 distanceToTabStop += baseTabWidth; |
| 248 | 247 |
| 249 return distanceToTabStop; | 248 return distanceToTabStop; |
| 250 } | 249 } |
| 251 | 250 |
| 252 } // namespace blink | 251 } // namespace blink |
| 253 | 252 |
| 254 #endif | 253 #endif |
| OLD | NEW |