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

Unified Diff: third_party/WebKit/Source/core/dom/ModulatorImpl.cpp

Issue 2781713003: Enable module scripts in ScriptLoader (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
Index: third_party/WebKit/Source/core/dom/ModulatorImpl.cpp
diff --git a/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp b/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp
index e958a6c8683d2c388cc49d05e9c593f9df2b1bf1..d985965ed686b51d4459b2a50b39ff34dbc0f74a 100644
--- a/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp
+++ b/third_party/WebKit/Source/core/dom/ModulatorImpl.cpp
@@ -134,9 +134,9 @@ Vector<String> ModulatorImpl::ModuleRequestsFromScriptModule(
return script_module.ModuleRequests(script_state_.Get());
}
-void ModulatorImpl::ExecuteModule(ScriptModule script_module) {
+void ModulatorImpl::ExecuteModule(const ModuleScript* moduleScript) {
ScriptState::Scope scope(script_state_.Get());
- script_module.Evaluate(script_state_.Get());
+ moduleScript->Record().Evaluate(script_state_.Get(), moduleScript);
}
DEFINE_TRACE(ModulatorImpl) {

Powered by Google App Engine
This is Rietveld 408576698