| Index: Source/core/html/HTMLScriptElement.cpp
|
| diff --git a/Source/core/html/HTMLScriptElement.cpp b/Source/core/html/HTMLScriptElement.cpp
|
| index 0f6df59e2b67121999ac3b75434457a6e97cbaa4..b95da30566f265e2ee01c80206b1bf2fb71d00ee 100644
|
| --- a/Source/core/html/HTMLScriptElement.cpp
|
| +++ b/Source/core/html/HTMLScriptElement.cpp
|
| @@ -30,6 +30,7 @@
|
| #include "core/dom/Attribute.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/ScriptLoader.h"
|
| +#include "core/dom/ScriptRunner.h"
|
| #include "core/dom/Text.h"
|
| #include "core/events/Event.h"
|
|
|
| @@ -70,6 +71,12 @@ void HTMLScriptElement::childrenChanged(const ChildrenChange& change)
|
| m_loader->childrenChanged();
|
| }
|
|
|
| +void HTMLScriptElement::didMoveToNewDocument(Document& oldDocument)
|
| +{
|
| + oldDocument.scriptRunner()->movePendingAsyncScript(document().scriptRunner(), m_loader.get());
|
| + HTMLElement::didMoveToNewDocument(oldDocument);
|
| +}
|
| +
|
| void HTMLScriptElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
|
| {
|
| if (name == srcAttr)
|
|
|