| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/animation/KeyframeEffect.h" | 5 #include "core/animation/KeyframeEffect.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "bindings/core/v8/Dictionary.h" | 9 #include "bindings/core/v8/Dictionary.h" |
| 10 #include "bindings/core/v8/DictionarySequenceOrDictionary.h" | 10 #include "bindings/core/v8/DictionarySequenceOrDictionary.h" |
| 11 #include "bindings/core/v8/UnrestrictedDoubleOrKeyframeEffectOptions.h" | 11 #include "bindings/core/v8/UnrestrictedDoubleOrKeyframeEffectOptions.h" |
| 12 #include "bindings/core/v8/V8BindingForTesting.h" | 12 #include "bindings/core/v8/V8BindingForTesting.h" |
| 13 #include "bindings/core/v8/V8KeyframeEffectOptions.h" | 13 #include "bindings/core/v8/V8KeyframeEffectOptions.h" |
| 14 #include "core/animation/Animation.h" |
| 14 #include "core/animation/AnimationClock.h" | 15 #include "core/animation/AnimationClock.h" |
| 15 #include "core/animation/AnimationEffectTiming.h" | 16 #include "core/animation/AnimationEffectTiming.h" |
| 16 #include "core/animation/AnimationTestHelper.h" | 17 #include "core/animation/AnimationTestHelper.h" |
| 17 #include "core/animation/DocumentTimeline.h" | 18 #include "core/animation/DocumentTimeline.h" |
| 18 #include "core/animation/KeyframeEffectModel.h" | 19 #include "core/animation/KeyframeEffectModel.h" |
| 19 #include "core/animation/Timing.h" | 20 #include "core/animation/Timing.h" |
| 20 #include "core/dom/Document.h" | 21 #include "core/dom/Document.h" |
| 21 #include "core/testing/DummyPageHolder.h" | 22 #include "core/testing/DummyPageHolder.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 23 #include "v8/include/v8.h" | 24 #include "v8/include/v8.h" |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 timing.iteration_duration = 5; | 421 timing.iteration_duration = 5; |
| 421 KeyframeEffect* animation = | 422 KeyframeEffect* animation = |
| 422 KeyframeEffect::Create(element.Get(), nullptr, timing); | 423 KeyframeEffect::Create(element.Get(), nullptr, timing); |
| 423 EXPECT_EQ(element.Get(), animation->Target()); | 424 EXPECT_EQ(element.Get(), animation->Target()); |
| 424 GetDocument().Timeline().Play(animation); | 425 GetDocument().Timeline().Play(animation); |
| 425 page_holder.reset(); | 426 page_holder.reset(); |
| 426 element.Clear(); | 427 element.Clear(); |
| 427 } | 428 } |
| 428 | 429 |
| 429 } // namespace blink | 430 } // namespace blink |
| OLD | NEW |