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

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

Issue 2780463002: Introduce blink::Script (Closed)
Patch Set: Rebase 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
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 686a0855d00b8552662b15472f720a104b2676f9..8b0333862476cec082761daa0de4bb30b8d60ee0 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"
@@ -462,7 +463,7 @@ void XMLDocumentParser::NotifyFinished(Resource* unused_resource) {
script_loader->WasCreatedDuringDocumentWrite());
}
- if (!script_loader->ExecuteScript(source_code))
+ if (!script_loader->ExecuteScript(ClassicScript::Create(source_code)))
script_loader->DispatchErrorEvent();
else
script_loader->DispatchLoadEvent();
@@ -1118,9 +1119,9 @@ void XMLDocumentParser::EndElementNs() {
// the libxml2 and Qt XMLDocumentParser implementations.
if (script_loader->ReadyToBeParserExecuted()) {
- if (!script_loader->ExecuteScript(
- ScriptSourceCode(script_loader->ScriptContent(),
- GetDocument()->Url(), script_start_position_))) {
+ if (!script_loader->ExecuteScript(ClassicScript::Create(ScriptSourceCode(
+ script_loader->ScriptContent(), GetDocument()->Url(),
+ script_start_position_)))) {
script_loader->DispatchErrorEvent();
return;
}
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698