Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(655)

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGScriptElement.cpp

Issue 1620983002: Also transfer pending in-order scripts upon element moving to new document (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: also remove is-disposed checking; unnecessary Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLScriptElement.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 77
78 void SVGScriptElement::childrenChanged(const ChildrenChange& change) 78 void SVGScriptElement::childrenChanged(const ChildrenChange& change)
79 { 79 {
80 SVGElement::childrenChanged(change); 80 SVGElement::childrenChanged(change);
81 m_loader->childrenChanged(); 81 m_loader->childrenChanged();
82 } 82 }
83 83
84 void SVGScriptElement::didMoveToNewDocument(Document& oldDocument) 84 void SVGScriptElement::didMoveToNewDocument(Document& oldDocument)
85 { 85 {
86 ScriptRunner::movePendingAsyncScript(oldDocument, document(), m_loader.get() ); 86 ScriptRunner::movePendingScript(oldDocument, document(), m_loader.get());
87 SVGElement::didMoveToNewDocument(oldDocument); 87 SVGElement::didMoveToNewDocument(oldDocument);
88 } 88 }
89 89
90 bool SVGScriptElement::isURLAttribute(const Attribute& attribute) const 90 bool SVGScriptElement::isURLAttribute(const Attribute& attribute) const
91 { 91 {
92 return attribute.name() == AtomicString(sourceAttributeValue()); 92 return attribute.name() == AtomicString(sourceAttributeValue());
93 } 93 }
94 94
95 void SVGScriptElement::finishParsingChildren() 95 void SVGScriptElement::finishParsingChildren()
96 { 96 {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 #endif 169 #endif
170 170
171 DEFINE_TRACE(SVGScriptElement) 171 DEFINE_TRACE(SVGScriptElement)
172 { 172 {
173 visitor->trace(m_loader); 173 visitor->trace(m_loader);
174 SVGElement::trace(visitor); 174 SVGElement::trace(visitor);
175 SVGURIReference::trace(visitor); 175 SVGURIReference::trace(visitor);
176 } 176 }
177 177
178 } // namespace blink 178 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLScriptElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698