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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) | 43 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) |
44 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledElement) | 44 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledElement) |
45 END_REGISTER_ANIMATED_PROPERTIES | 45 END_REGISTER_ANIMATED_PROPERTIES |
46 | 46 |
47 inline SVGFontElement::SVGFontElement(const QualifiedName& tagName, Document* do
cument) | 47 inline SVGFontElement::SVGFontElement(const QualifiedName& tagName, Document* do
cument) |
48 : SVGStyledElement(tagName, document) | 48 : SVGStyledElement(tagName, document) |
49 , m_missingGlyph(0) | 49 , m_missingGlyph(0) |
50 , m_isGlyphCacheValid(false) | 50 , m_isGlyphCacheValid(false) |
51 { | 51 { |
52 ASSERT(hasTagName(SVGNames::fontTag)); | 52 ASSERT(hasTagName(SVGNames::fontTag)); |
| 53 ScriptWrappable::init(this); |
53 registerAnimatedPropertiesForSVGFontElement(); | 54 registerAnimatedPropertiesForSVGFontElement(); |
54 } | 55 } |
55 | 56 |
56 PassRefPtr<SVGFontElement> SVGFontElement::create(const QualifiedName& tagName,
Document* document) | 57 PassRefPtr<SVGFontElement> SVGFontElement::create(const QualifiedName& tagName,
Document* document) |
57 { | 58 { |
58 return adoptRef(new SVGFontElement(tagName, document)); | 59 return adoptRef(new SVGFontElement(tagName, document)); |
59 } | 60 } |
60 | 61 |
61 void SVGFontElement::invalidateGlyphCache() | 62 void SVGFontElement::invalidateGlyphCache() |
62 { | 63 { |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 254 |
254 Glyph SVGFontElement::missingGlyph() | 255 Glyph SVGFontElement::missingGlyph() |
255 { | 256 { |
256 ensureGlyphCache(); | 257 ensureGlyphCache(); |
257 return m_missingGlyph; | 258 return m_missingGlyph; |
258 } | 259 } |
259 | 260 |
260 } | 261 } |
261 | 262 |
262 #endif // ENABLE(SVG_FONTS) | 263 #endif // ENABLE(SVG_FONTS) |
OLD | NEW |