OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 28 matching lines...) Expand all Loading... |
39 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGScriptElement) | 39 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGScriptElement) |
40 END_REGISTER_ANIMATED_PROPERTIES | 40 END_REGISTER_ANIMATED_PROPERTIES |
41 | 41 |
42 inline SVGScriptElement::SVGScriptElement(Document& document, bool wasInsertedBy
Parser, bool alreadyStarted) | 42 inline SVGScriptElement::SVGScriptElement(Document& document, bool wasInsertedBy
Parser, bool alreadyStarted) |
43 : SVGElement(SVGNames::scriptTag, document) | 43 : SVGElement(SVGNames::scriptTag, document) |
44 , SVGURIReference(this) | 44 , SVGURIReference(this) |
45 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) | 45 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) |
46 , m_loader(ScriptLoader::create(this, wasInsertedByParser, alreadyStarted)) | 46 , m_loader(ScriptLoader::create(this, wasInsertedByParser, alreadyStarted)) |
47 { | 47 { |
48 ScriptWrappable::init(this); | 48 ScriptWrappable::init(this); |
49 registerAnimatedPropertiesForSVGScriptElement(); | |
50 } | 49 } |
51 | 50 |
52 PassRefPtr<SVGScriptElement> SVGScriptElement::create(Document& document, bool i
nsertedByParser) | 51 PassRefPtr<SVGScriptElement> SVGScriptElement::create(Document& document, bool i
nsertedByParser) |
53 { | 52 { |
54 return adoptRef(new SVGScriptElement(document, insertedByParser, false)); | 53 return adoptRef(new SVGScriptElement(document, insertedByParser, false)); |
55 } | 54 } |
56 | 55 |
57 bool SVGScriptElement::isSupportedAttribute(const QualifiedName& attrName) | 56 bool SVGScriptElement::isSupportedAttribute(const QualifiedName& attrName) |
58 { | 57 { |
59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 58 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 bool SVGScriptElement::isAnimatableAttribute(const QualifiedName& name) const | 202 bool SVGScriptElement::isAnimatableAttribute(const QualifiedName& name) const |
204 { | 203 { |
205 if (name == SVGNames::typeAttr) | 204 if (name == SVGNames::typeAttr) |
206 return false; | 205 return false; |
207 | 206 |
208 return SVGElement::isAnimatableAttribute(name); | 207 return SVGElement::isAnimatableAttribute(name); |
209 } | 208 } |
210 #endif | 209 #endif |
211 | 210 |
212 } | 211 } |
OLD | NEW |