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

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

Issue 229753004: Handle didMoveToNewDocument() for <script> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGScriptElement.h ('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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
117 void SVGScriptElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) 123 void SVGScriptElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta)
118 { 124 {
119 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta); 125 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta);
120 m_loader->childrenChanged(); 126 m_loader->childrenChanged();
121 } 127 }
122 128
123 bool SVGScriptElement::isURLAttribute(const Attribute& attribute) const 129 bool SVGScriptElement::isURLAttribute(const Attribute& attribute) const
124 { 130 {
125 return attribute.name() == AtomicString(sourceAttributeValue()); 131 return attribute.name() == AtomicString(sourceAttributeValue());
126 } 132 }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 bool SVGScriptElement::isAnimatableAttribute(const QualifiedName& name) const 201 bool SVGScriptElement::isAnimatableAttribute(const QualifiedName& name) const
196 { 202 {
197 if (name == SVGNames::typeAttr) 203 if (name == SVGNames::typeAttr)
198 return false; 204 return false;
199 205
200 return SVGElement::isAnimatableAttribute(name); 206 return SVGElement::isAnimatableAttribute(name);
201 } 207 }
202 #endif 208 #endif
203 209
204 } 210 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGScriptElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698