| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 81 } |
| 82 | 82 |
| 83 void SVGScriptElement::childrenChanged(const ChildrenChange& change) | 83 void SVGScriptElement::childrenChanged(const ChildrenChange& change) |
| 84 { | 84 { |
| 85 SVGElement::childrenChanged(change); | 85 SVGElement::childrenChanged(change); |
| 86 m_loader->childrenChanged(); | 86 m_loader->childrenChanged(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 void SVGScriptElement::didMoveToNewDocument(Document& oldDocument) | 89 void SVGScriptElement::didMoveToNewDocument(Document& oldDocument) |
| 90 { | 90 { |
| 91 if (RefPtrWillBeRawPtr<Document> contextDocument = document().contextDocumen
t().get()) | 91 ScriptRunner::movePendingAsyncScript(oldDocument, document(), m_loader.get()
); |
| 92 oldDocument.scriptRunner()->movePendingAsyncScript(contextDocument->scri
ptRunner(), m_loader.get()); | |
| 93 SVGElement::didMoveToNewDocument(oldDocument); | 92 SVGElement::didMoveToNewDocument(oldDocument); |
| 94 } | 93 } |
| 95 | 94 |
| 96 bool SVGScriptElement::isURLAttribute(const Attribute& attribute) const | 95 bool SVGScriptElement::isURLAttribute(const Attribute& attribute) const |
| 97 { | 96 { |
| 98 return attribute.name() == AtomicString(sourceAttributeValue()); | 97 return attribute.name() == AtomicString(sourceAttributeValue()); |
| 99 } | 98 } |
| 100 | 99 |
| 101 void SVGScriptElement::finishParsingChildren() | 100 void SVGScriptElement::finishParsingChildren() |
| 102 { | 101 { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 #endif | 174 #endif |
| 176 | 175 |
| 177 void SVGScriptElement::trace(Visitor* visitor) | 176 void SVGScriptElement::trace(Visitor* visitor) |
| 178 { | 177 { |
| 179 visitor->trace(m_loader); | 178 visitor->trace(m_loader); |
| 180 SVGElement::trace(visitor); | 179 SVGElement::trace(visitor); |
| 181 SVGURIReference::trace(visitor); | 180 SVGURIReference::trace(visitor); |
| 182 } | 181 } |
| 183 | 182 |
| 184 } // namespace blink | 183 } // namespace blink |
| OLD | NEW |