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

Unified Diff: third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp

Issue 2178223002: Refactor Worklet class to use ScriptResource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: set m_fetcher in initialization list, s/override/final, copyright etc. Created 4 years, 5 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/workers/MainThreadWorkletGlobalScope.cpp
diff --git a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp
index 1d605348e21831c265ecd30b9191f553acefb3be..707e849c7b2dff29df18406e0fda42ca1d9531d4 100644
--- a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp
@@ -21,9 +21,9 @@ MainThreadWorkletGlobalScope::~MainThreadWorkletGlobalScope()
{
}
-void MainThreadWorkletGlobalScope::evaluateScript(const String& source, const KURL& scriptURL)
+void MainThreadWorkletGlobalScope::evaluateScript(const ScriptSourceCode& scriptSourceCode)
{
- scriptController()->evaluate(ScriptSourceCode(source, scriptURL));
+ scriptController()->evaluate(scriptSourceCode);
}
void MainThreadWorkletGlobalScope::terminateWorkletGlobalScope()

Powered by Google App Engine
This is Rietveld 408576698