| 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 27 matching lines...) Expand all Loading... |
| 38 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFontElement) | 38 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFontElement) |
| 39 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGElement) | 39 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGElement) |
| 40 END_REGISTER_ANIMATED_PROPERTIES | 40 END_REGISTER_ANIMATED_PROPERTIES |
| 41 | 41 |
| 42 inline SVGFontElement::SVGFontElement(Document& document) | 42 inline SVGFontElement::SVGFontElement(Document& document) |
| 43 : SVGElement(SVGNames::fontTag, document) | 43 : SVGElement(SVGNames::fontTag, document) |
| 44 , m_missingGlyph(0) | 44 , m_missingGlyph(0) |
| 45 , m_isGlyphCacheValid(false) | 45 , m_isGlyphCacheValid(false) |
| 46 { | 46 { |
| 47 ScriptWrappable::init(this); | 47 ScriptWrappable::init(this); |
| 48 registerAnimatedPropertiesForSVGFontElement(); | |
| 49 | 48 |
| 50 UseCounter::count(document, UseCounter::SVGFontElement); | 49 UseCounter::count(document, UseCounter::SVGFontElement); |
| 51 } | 50 } |
| 52 | 51 |
| 53 PassRefPtr<SVGFontElement> SVGFontElement::create(Document& document) | 52 PassRefPtr<SVGFontElement> SVGFontElement::create(Document& document) |
| 54 { | 53 { |
| 55 return adoptRef(new SVGFontElement(document)); | 54 return adoptRef(new SVGFontElement(document)); |
| 56 } | 55 } |
| 57 | 56 |
| 58 void SVGFontElement::invalidateGlyphCache() | 57 void SVGFontElement::invalidateGlyphCache() |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 265 |
| 267 Glyph SVGFontElement::missingGlyph() | 266 Glyph SVGFontElement::missingGlyph() |
| 268 { | 267 { |
| 269 ensureGlyphCache(); | 268 ensureGlyphCache(); |
| 270 return m_missingGlyph; | 269 return m_missingGlyph; |
| 271 } | 270 } |
| 272 | 271 |
| 273 } | 272 } |
| 274 | 273 |
| 275 #endif // ENABLE(SVG_FONTS) | 274 #endif // ENABLE(SVG_FONTS) |
| OLD | NEW |