| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 void SVGScriptElement::didNotifySubtreeInsertionsToDocument() | 107 void SVGScriptElement::didNotifySubtreeInsertionsToDocument() |
| 108 { | 108 { |
| 109 m_loader->didNotifySubtreeInsertionsToDocument(); | 109 m_loader->didNotifySubtreeInsertionsToDocument(); |
| 110 | 110 |
| 111 if (!m_loader->isParserInserted()) { | 111 if (!m_loader->isParserInserted()) { |
| 112 m_loader->setHaveFiredLoadEvent(true); | 112 m_loader->setHaveFiredLoadEvent(true); |
| 113 sendSVGLoadEventIfPossibleAsynchronously(); | 113 sendSVGLoadEventIfPossibleAsynchronously(); |
| 114 } | 114 } |
| 115 } | 115 } |
| 116 | 116 |
| 117 void SVGScriptElement::didMoveToNewDocument(Document& oldDocument) | |
| 118 { | |
| 119 SVGElement::didMoveToNewDocument(oldDocument); | |
| 120 m_loader->cancel(&oldDocument); | |
| 121 } | |
| 122 | |
| 123 void SVGScriptElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) | 117 void SVGScriptElement::childrenChanged(bool changedByParser, Node* beforeChange,
Node* afterChange, int childCountDelta) |
| 124 { | 118 { |
| 125 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 119 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); |
| 126 m_loader->childrenChanged(); | 120 m_loader->childrenChanged(); |
| 127 } | 121 } |
| 128 | 122 |
| 129 bool SVGScriptElement::isURLAttribute(const Attribute& attribute) const | 123 bool SVGScriptElement::isURLAttribute(const Attribute& attribute) const |
| 130 { | 124 { |
| 131 return attribute.name() == AtomicString(sourceAttributeValue()); | 125 return attribute.name() == AtomicString(sourceAttributeValue()); |
| 132 } | 126 } |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 bool SVGScriptElement::isAnimatableAttribute(const QualifiedName& name) const | 195 bool SVGScriptElement::isAnimatableAttribute(const QualifiedName& name) const |
| 202 { | 196 { |
| 203 if (name == SVGNames::typeAttr) | 197 if (name == SVGNames::typeAttr) |
| 204 return false; | 198 return false; |
| 205 | 199 |
| 206 return SVGElement::isAnimatableAttribute(name); | 200 return SVGElement::isAnimatableAttribute(name); |
| 207 } | 201 } |
| 208 #endif | 202 #endif |
| 209 | 203 |
| 210 } | 204 } |
| OLD | NEW |