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

Unified Diff: Source/core/html/HTMLScriptElement.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLScriptElement.h ('k') | Source/core/svg/SVGScriptElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLScriptElement.cpp
diff --git a/Source/core/html/HTMLScriptElement.cpp b/Source/core/html/HTMLScriptElement.cpp
index 5ad6b6751e3b30528421e02c00e7c7fda6766a2e..c30f1804a2c35877052e1070aeb8779e7a497a41 100644
--- a/Source/core/html/HTMLScriptElement.cpp
+++ b/Source/core/html/HTMLScriptElement.cpp
@@ -90,6 +90,12 @@ void HTMLScriptElement::didNotifySubtreeInsertionsToDocument()
m_loader->didNotifySubtreeInsertionsToDocument();
}
+void HTMLScriptElement::didMoveToNewDocument(Document& oldDocument)
+{
+ HTMLElement::didMoveToNewDocument(oldDocument);
+ m_loader->cancel(&oldDocument);
+}
+
void HTMLScriptElement::setText(const String &value)
{
RefPtr<Node> protectFromMutationEvents(this);
« no previous file with comments | « Source/core/html/HTMLScriptElement.h ('k') | Source/core/svg/SVGScriptElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698