| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #include "core/frame/UseCounter.h" | 27 #include "core/frame/UseCounter.h" |
| 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 | |
| 37 | |
| 38 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFontElement) | |
| 39 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGElement) | |
| 40 END_REGISTER_ANIMATED_PROPERTIES | |
| 41 | |
| 42 inline SVGFontElement::SVGFontElement(Document& document) | 36 inline SVGFontElement::SVGFontElement(Document& document) |
| 43 : SVGElement(SVGNames::fontTag, document) | 37 : SVGElement(SVGNames::fontTag, document) |
| 44 , m_missingGlyph(0) | 38 , m_missingGlyph(0) |
| 45 , m_isGlyphCacheValid(false) | 39 , m_isGlyphCacheValid(false) |
| 46 { | 40 { |
| 47 ScriptWrappable::init(this); | 41 ScriptWrappable::init(this); |
| 48 | 42 |
| 49 UseCounter::count(document, UseCounter::SVGFontElement); | 43 UseCounter::count(document, UseCounter::SVGFontElement); |
| 50 } | 44 } |
| 51 | 45 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 259 |
| 266 Glyph SVGFontElement::missingGlyph() | 260 Glyph SVGFontElement::missingGlyph() |
| 267 { | 261 { |
| 268 ensureGlyphCache(); | 262 ensureGlyphCache(); |
| 269 return m_missingGlyph; | 263 return m_missingGlyph; |
| 270 } | 264 } |
| 271 | 265 |
| 272 } | 266 } |
| 273 | 267 |
| 274 #endif // ENABLE(SVG_FONTS) | 268 #endif // ENABLE(SVG_FONTS) |
| OLD | NEW |