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

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

Issue 913473002: Testing a fix to crbug.com/456059. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: refactored Created 5 years, 10 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 | « 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/html/HTMLScriptElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698