| 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 975c29ea9e50033fe1b9cbf55ad745be753a62c4..5302b3d18c89f3693fa7d5f0c85e45fb7ffe3009 100644
|
| --- a/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.cpp
|
| +++ b/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.cpp
|
| @@ -39,7 +39,7 @@ Worklet* WindowAnimationWorklet::animationWorklet(DOMWindow& window)
|
|
|
| AnimationWorklet* WindowAnimationWorklet::animationWorklet()
|
| {
|
| - if (!m_animationWorklet)
|
| + if (!m_animationWorklet && frame())
|
| m_animationWorklet = AnimationWorklet::create(frame());
|
| return m_animationWorklet.get();
|
| }
|
|
|