OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "core/svg/SVGGlyphElement.h" | 28 #include "core/svg/SVGGlyphElement.h" |
29 #include "core/svg/SVGHKernElement.h" | 29 #include "core/svg/SVGHKernElement.h" |
30 #include "core/svg/SVGMissingGlyphElement.h" | 30 #include "core/svg/SVGMissingGlyphElement.h" |
31 #include "core/svg/SVGVKernElement.h" | 31 #include "core/svg/SVGVKernElement.h" |
32 #include "wtf/ASCIICType.h" | 32 #include "wtf/ASCIICType.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 // Animated property definitions | 36 // Animated property definitions |
37 | 37 |
38 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFontElement) | |
39 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGElement) | |
40 END_REGISTER_ANIMATED_PROPERTIES | |
41 | 38 |
42 inline SVGFontElement::SVGFontElement(Document& document) | 39 inline SVGFontElement::SVGFontElement(Document& document) |
43 : SVGElement(SVGNames::fontTag, document) | 40 : SVGElement(SVGNames::fontTag, document) |
44 , m_missingGlyph(0) | 41 , m_missingGlyph(0) |
45 , m_isGlyphCacheValid(false) | 42 , m_isGlyphCacheValid(false) |
46 { | 43 { |
47 ScriptWrappable::init(this); | 44 ScriptWrappable::init(this); |
48 | 45 |
49 UseCounter::count(document, UseCounter::SVGFontElement); | 46 UseCounter::count(document, UseCounter::SVGFontElement); |
50 } | 47 } |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 262 |
266 Glyph SVGFontElement::missingGlyph() | 263 Glyph SVGFontElement::missingGlyph() |
267 { | 264 { |
268 ensureGlyphCache(); | 265 ensureGlyphCache(); |
269 return m_missingGlyph; | 266 return m_missingGlyph; |
270 } | 267 } |
271 | 268 |
272 } | 269 } |
273 | 270 |
274 #endif // ENABLE(SVG_FONTS) | 271 #endif // ENABLE(SVG_FONTS) |
OLD | NEW |