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

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: synced to the head Created 4 years, 4 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 b7205de0231cf231289f8024eae2c1121c1340a5..8d0271575240c219cc654278c5a39bbb4dd3c41f 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