| Index: Source/core/svg/SVGScriptElement.cpp
|
| diff --git a/Source/core/svg/SVGScriptElement.cpp b/Source/core/svg/SVGScriptElement.cpp
|
| index 36b3a19a23ad23567f993480b47797a39aafa565..e384e19d1e344a14fcf8beba2f5f52d5b43d1209 100644
|
| --- a/Source/core/svg/SVGScriptElement.cpp
|
| +++ b/Source/core/svg/SVGScriptElement.cpp
|
| @@ -88,8 +88,7 @@ void SVGScriptElement::childrenChanged(const ChildrenChange& change)
|
|
|
| void SVGScriptElement::didMoveToNewDocument(Document& oldDocument)
|
| {
|
| - if (RefPtrWillBeRawPtr<Document> contextDocument = document().contextDocument().get())
|
| - oldDocument.scriptRunner()->movePendingAsyncScript(contextDocument->scriptRunner(), m_loader.get());
|
| + ScriptRunner::movePendingAsyncScript(oldDocument, document(), m_loader.get());
|
| SVGElement::didMoveToNewDocument(oldDocument);
|
| }
|
|
|
|
|