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

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: 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/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 36e7cf38c8864fb5bcea25194a2a55a5c0b796e2..cc58e9b632af0fcae17bf573b5742d3dcb220513 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)
+PaintWorklet* WindowPaintWorklet::paintWorklet()
{
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