| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 REGISTER_LOCAL_ANIMATED_PROPERTY(href) | 43 REGISTER_LOCAL_ANIMATED_PROPERTY(href) |
| 44 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) | 44 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) |
| 45 END_REGISTER_ANIMATED_PROPERTIES | 45 END_REGISTER_ANIMATED_PROPERTIES |
| 46 | 46 |
| 47 inline SVGScriptElement::SVGScriptElement(const QualifiedName& tagName, Document
* document, bool wasInsertedByParser, bool alreadyStarted) | 47 inline SVGScriptElement::SVGScriptElement(const QualifiedName& tagName, Document
* document, bool wasInsertedByParser, bool alreadyStarted) |
| 48 : SVGElement(tagName, document) | 48 : SVGElement(tagName, document) |
| 49 , ScriptElement(this, wasInsertedByParser, alreadyStarted) | 49 , ScriptElement(this, wasInsertedByParser, alreadyStarted) |
| 50 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) | 50 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) |
| 51 { | 51 { |
| 52 ASSERT(hasTagName(SVGNames::scriptTag)); | 52 ASSERT(hasTagName(SVGNames::scriptTag)); |
| 53 ScriptWrappable::init(this); |
| 53 registerAnimatedPropertiesForSVGScriptElement(); | 54 registerAnimatedPropertiesForSVGScriptElement(); |
| 54 } | 55 } |
| 55 | 56 |
| 56 PassRefPtr<SVGScriptElement> SVGScriptElement::create(const QualifiedName& tagNa
me, Document* document, bool insertedByParser) | 57 PassRefPtr<SVGScriptElement> SVGScriptElement::create(const QualifiedName& tagNa
me, Document* document, bool insertedByParser) |
| 57 { | 58 { |
| 58 return adoptRef(new SVGScriptElement(tagName, document, insertedByParser, fa
lse)); | 59 return adoptRef(new SVGScriptElement(tagName, document, insertedByParser, fa
lse)); |
| 59 } | 60 } |
| 60 | 61 |
| 61 bool SVGScriptElement::isSupportedAttribute(const QualifiedName& attrName) | 62 bool SVGScriptElement::isSupportedAttribute(const QualifiedName& attrName) |
| 62 { | 63 { |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 } | 208 } |
| 208 | 209 |
| 209 PassRefPtr<Element> SVGScriptElement::cloneElementWithoutAttributesAndChildren() | 210 PassRefPtr<Element> SVGScriptElement::cloneElementWithoutAttributesAndChildren() |
| 210 { | 211 { |
| 211 return adoptRef(new SVGScriptElement(tagQName(), document(), false, alreadyS
tarted())); | 212 return adoptRef(new SVGScriptElement(tagQName(), document(), false, alreadyS
tarted())); |
| 212 } | 213 } |
| 213 | 214 |
| 214 } | 215 } |
| 215 | 216 |
| 216 #endif // ENABLE(SVG) | 217 #endif // ENABLE(SVG) |
| OLD | NEW |