summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/animationworklet/animation_worklet.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/animationworklet/animation_worklet.cc')
-rw-r--r--chromium/third_party/blink/renderer/modules/animationworklet/animation_worklet.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/modules/animationworklet/animation_worklet.cc b/chromium/third_party/blink/renderer/modules/animationworklet/animation_worklet.cc
index 6e95e414eed..92306d44e69 100644
--- a/chromium/third_party/blink/renderer/modules/animationworklet/animation_worklet.cc
+++ b/chromium/third_party/blink/renderer/modules/animationworklet/animation_worklet.cc
@@ -41,7 +41,7 @@ WorkletGlobalScopeProxy* AnimationWorklet::CreateGlobalScope() {
// initialization can move to the constructor. Currently, initialization
// in the constructor leads to test failures as the document frame has not
// been initialized at the time of the constructor call.
- Document* document = To<Document>(GetExecutionContext());
+ Document* document = Document::From(GetExecutionContext());
proxy_client_ =
AnimationWorkletProxyClient::FromDocument(document, worklet_id_);
}
@@ -62,7 +62,7 @@ WorkletAnimationId AnimationWorklet::NextWorkletAnimationId() {
return WorkletAnimationId(worklet_id_, ++last_animation_id_);
}
-void AnimationWorklet::Trace(blink::Visitor* visitor) {
+void AnimationWorklet::Trace(Visitor* visitor) {
Worklet::Trace(visitor);
visitor->Trace(proxy_client_);
}