blob: 24e01f70b3cf83425d0601899c6bca89f08d06c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/animationworklet/animator_definition.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_function.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_animate_callback.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_animator_constructor.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_state_callback.h"
namespace blink {
AnimatorDefinition::AnimatorDefinition(V8AnimatorConstructor* constructor,
V8AnimateCallback* animate,
V8StateCallback* state)
: constructor_(constructor), animate_(animate), state_(state) {
DCHECK(constructor_);
DCHECK(animate_);
}
void AnimatorDefinition::Trace(Visitor* visitor) {
visitor->Trace(constructor_);
visitor->Trace(animate_);
visitor->Trace(state_);
}
} // namespace blink
|