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

Unified Diff: third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp

Issue 2780463002: Introduce blink::Script (Closed)
Patch Set: style Created 3 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
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;
}

Powered by Google App Engine
This is Rietveld 408576698