| Index: third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
|
| index f14e8c3185c3555bc5e78d53cc4b3ffc76274f26..1b955d2ae5f5a8a09ffb0cfe1b615519adc41af9 100644
|
| --- a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
|
| +++ b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp
|
| @@ -36,6 +36,7 @@
|
| #include "core/HTMLNames.h"
|
| #include "core/XMLNSNames.h"
|
| #include "core/dom/CDATASection.h"
|
| +#include "core/dom/ClassicScript.h"
|
| #include "core/dom/Comment.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/DocumentFragment.h"
|
| @@ -461,7 +462,7 @@ void XMLDocumentParser::notifyFinished(Resource* unusedResource) {
|
| scriptLoader->wasCreatedDuringDocumentWrite());
|
| }
|
|
|
| - if (!scriptLoader->executeScript(sourceCode))
|
| + if (!scriptLoader->executeScript(ClassicScript::create(sourceCode)))
|
| scriptLoader->dispatchErrorEvent();
|
| else
|
| scriptLoader->dispatchLoadEvent();
|
| @@ -1114,9 +1115,9 @@ void XMLDocumentParser::endElementNs() {
|
| // the libxml2 and Qt XMLDocumentParser implementations.
|
|
|
| if (scriptLoader->readyToBeParserExecuted()) {
|
| - if (!scriptLoader->executeScript(
|
| + if (!scriptLoader->executeScript(ClassicScript::create(
|
| ScriptSourceCode(scriptLoader->scriptContent(), document()->url(),
|
| - m_scriptStartPosition))) {
|
| + m_scriptStartPosition)))) {
|
| scriptLoader->dispatchErrorEvent();
|
| return;
|
| }
|
|
|