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

Unified Diff: Source/core/dom/ScriptElement.cpp

Issue 13575004: Apply script preprocessor to Web page scripts only. (Closed) Base URL: https://chromium.googlesource.com/external/WebKit_trimmed.git@master
Patch Set: Re-implment based on review Created 7 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: Source/core/dom/ScriptElement.cpp
diff --git a/Source/core/dom/ScriptElement.cpp b/Source/core/dom/ScriptElement.cpp
index b39ba0f764eb9a17d075831ea5b754571f123056..6fbe0914d3cf492de41cbef1229df354a5813dca 100644
--- a/Source/core/dom/ScriptElement.cpp
+++ b/Source/core/dom/ScriptElement.cpp
@@ -310,7 +310,7 @@ void ScriptElement::executeScript(const ScriptSourceCode& sourceCode)
// Create a script from the script element node, using the script
// block's source and the script block's type.
// Note: This is where the script is compiled and actually executed.
- frame->script()->evaluate(sourceCode);
+ frame->script()->evaluateFromWebPage(sourceCode);
pfeldman 2013/05/29 15:03:52 Do we know of entry points other than script and D
}
}
}
« Source/bindings/v8/ScriptController.h ('K') | « Source/bindings/v8/V8PerContextDebugData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698