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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 class SkTextBlob; | 46 class SkTextBlob; |
47 struct SkPoint; | 47 struct SkPoint; |
48 | 48 |
49 namespace blink { | 49 namespace blink { |
50 | 50 |
51 class FloatPoint; | 51 class FloatPoint; |
52 class FloatRect; | 52 class FloatRect; |
53 class FontData; | 53 class FontData; |
54 class FontMetrics; | 54 class FontMetrics; |
55 class FontPlatformData; | |
56 class FontSelector; | 55 class FontSelector; |
57 class GlyphBuffer; | 56 class GlyphBuffer; |
58 class GraphicsContext; | 57 class GraphicsContext; |
59 class TextRun; | 58 class TextRun; |
60 struct TextRunPaintInfo; | 59 struct TextRunPaintInfo; |
61 | 60 |
62 struct GlyphData; | 61 struct GlyphData; |
63 | 62 |
64 struct GlyphOverflow { | 63 struct GlyphOverflow { |
65 GlyphOverflow() | 64 GlyphOverflow() |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 { | 224 { |
226 if (!tabSize) | 225 if (!tabSize) |
227 return fontDescription().letterSpacing(); | 226 return fontDescription().letterSpacing(); |
228 float tabWidth = tabSize * fontData.spaceWidth() + fontDescription().letterS
pacing(); | 227 float tabWidth = tabSize * fontData.spaceWidth() + fontDescription().letterS
pacing(); |
229 return tabWidth - fmodf(position, tabWidth); | 228 return tabWidth - fmodf(position, tabWidth); |
230 } | 229 } |
231 | 230 |
232 } // namespace blink | 231 } // namespace blink |
233 | 232 |
234 #endif | 233 #endif |
OLD | NEW |