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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.cpp

Issue 2178223002: Refactor Worklet class to use ScriptResource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed comments & synced to the HEAD 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/compositorworker/WindowAnimationWorklet.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.cpp b/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.cpp
index dc1c5bbc005889bc7e1403c506d006db32846937..31929420ab15dd977efe4e44c32afe225f8ce46d 100644
--- a/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.cpp
@@ -40,7 +40,7 @@ Worklet* WindowAnimationWorklet::animationWorklet(ExecutionContext* executionCon
AnimationWorklet* WindowAnimationWorklet::animationWorklet(ExecutionContext* executionContext)
{
if (!m_animationWorklet)
- m_animationWorklet = AnimationWorklet::create(executionContext);
+ m_animationWorklet = AnimationWorklet::create(executionContext, frame());
return m_animationWorklet.get();
}

Powered by Google App Engine
This is Rietveld 408576698