| 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 16 matching lines...) Expand all Loading... |
| 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 | 36 // Animated property definitions |
| 37 DEFINE_ANIMATED_BOOLEAN(SVGFontElement, SVGNames::externalResourcesRequiredAttr,
ExternalResourcesRequired, externalResourcesRequired) | |
| 38 | 37 |
| 39 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFontElement) | 38 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFontElement) |
| 40 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) | |
| 41 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGElement) | 39 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGElement) |
| 42 END_REGISTER_ANIMATED_PROPERTIES | 40 END_REGISTER_ANIMATED_PROPERTIES |
| 43 | 41 |
| 44 inline SVGFontElement::SVGFontElement(Document& document) | 42 inline SVGFontElement::SVGFontElement(Document& document) |
| 45 : SVGElement(SVGNames::fontTag, document) | 43 : SVGElement(SVGNames::fontTag, document) |
| 46 , m_missingGlyph(0) | 44 , m_missingGlyph(0) |
| 47 , m_isGlyphCacheValid(false) | 45 , m_isGlyphCacheValid(false) |
| 48 { | 46 { |
| 49 ScriptWrappable::init(this); | 47 ScriptWrappable::init(this); |
| 50 registerAnimatedPropertiesForSVGFontElement(); | 48 registerAnimatedPropertiesForSVGFontElement(); |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 248 |
| 251 Glyph SVGFontElement::missingGlyph() | 249 Glyph SVGFontElement::missingGlyph() |
| 252 { | 250 { |
| 253 ensureGlyphCache(); | 251 ensureGlyphCache(); |
| 254 return m_missingGlyph; | 252 return m_missingGlyph; |
| 255 } | 253 } |
| 256 | 254 |
| 257 } | 255 } |
| 258 | 256 |
| 259 #endif // ENABLE(SVG_FONTS) | 257 #endif // ENABLE(SVG_FONTS) |
| OLD | NEW |