diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/animation/effect_stack_test.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/animation/effect_stack_test.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/animation/effect_stack_test.cc b/chromium/third_party/blink/renderer/core/animation/effect_stack_test.cc index bf4f93ecf76..13a728cafc9 100644 --- a/chromium/third_party/blink/renderer/core/animation/effect_stack_test.cc +++ b/chromium/third_party/blink/renderer/core/animation/effect_stack_test.cc @@ -5,7 +5,9 @@ #include "third_party/blink/renderer/core/animation/effect_stack.h" #include <memory> + #include "testing/gtest/include/gtest/gtest.h" +#include "third_party/blink/renderer/bindings/core/v8/v8_union_cssnumericvalue_double.h" #include "third_party/blink/renderer/core/animation/animation_clock.h" #include "third_party/blink/renderer/core/animation/animation_test_helpers.h" #include "third_party/blink/renderer/core/animation/document_timeline.h" @@ -34,7 +36,13 @@ class AnimationEffectStackTest : public PageTestBase { Animation* Play(KeyframeEffect* effect, double start_time) { Animation* animation = timeline->Play(effect); +#if defined(USE_BLINK_V8_BINDING_NEW_IDL_UNION) + animation->setStartTime( + MakeGarbageCollected<V8CSSNumberish>(start_time * 1000), + ASSERT_NO_EXCEPTION); +#else // defined(USE_BLINK_V8_BINDING_NEW_IDL_UNION) animation->setStartTime(CSSNumberish::FromDouble(start_time * 1000)); +#endif // defined(USE_BLINK_V8_BINDING_NEW_IDL_UNION) animation->Update(kTimingUpdateOnDemand); return animation; } @@ -69,7 +77,7 @@ class AnimationEffectStackTest : public PageTestBase { Timing timing; timing.fill_mode = Timing::FillMode::BOTH; return MakeGarbageCollected<InertEffect>( - effect, timing, false, AnimationTimeDelta(), base::nullopt); + effect, timing, false, AnimationTimeDelta(), absl::nullopt); } KeyframeEffect* MakeKeyframeEffect(KeyframeEffectModelBase* effect, |