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

Unified Diff: third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.cpp

Issue 2178223002: Refactor Worklet class to use ScriptResource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed redundant ExecutionContext parameter, changed WorkletScriptLoader to inherit from ResourceO… 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/modules/csspaint/WindowPaintWorklet.cpp
diff --git a/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.cpp b/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.cpp
index ad97908ac77b22ea62f12101cdfe105f76286dbb..d18578304b5b9f70d03c019503a919d3015e2a9e 100644
--- a/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.cpp
@@ -32,15 +32,15 @@ WindowPaintWorklet& WindowPaintWorklet::from(LocalDOMWindow& window)
}
// static
-Worklet* WindowPaintWorklet::paintWorklet(ExecutionContext* executionContext, DOMWindow& window)
+Worklet* WindowPaintWorklet::paintWorklet(DOMWindow& window)
{
- return from(toLocalDOMWindow(window)).paintWorklet(executionContext);
+ return from(toLocalDOMWindow(window)).paintWorklet();
}
-PaintWorklet* WindowPaintWorklet::paintWorklet(ExecutionContext* executionContext) const
+PaintWorklet* WindowPaintWorklet::paintWorklet() const
{
if (!m_paintWorklet && frame())
- m_paintWorklet = PaintWorklet::create(frame(), executionContext);
+ m_paintWorklet = PaintWorklet::create(frame());
return m_paintWorklet.get();
}

Powered by Google App Engine
This is Rietveld 408576698