Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: third_party/WebKit/Source/core/animation/KeyframeEffect.cpp

Issue 2379863003: Implement AnimationEffectTimingReadOnly interface (Closed)
Patch Set: Response to review, update formatting of new files Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "core/animation/KeyframeEffect.h" 31 #include "core/animation/KeyframeEffect.h"
32 32
33 #include "bindings/core/v8/Dictionary.h" 33 #include "bindings/core/v8/Dictionary.h"
34 #include "bindings/core/v8/ExceptionState.h" 34 #include "bindings/core/v8/ExceptionState.h"
35 #include "core/animation/Animation.h" 35 #include "core/animation/Animation.h"
36 #include "core/animation/AnimationEffectTiming.h"
36 #include "core/animation/AnimationTimeline.h" 37 #include "core/animation/AnimationTimeline.h"
37 #include "core/animation/CompositorAnimations.h" 38 #include "core/animation/CompositorAnimations.h"
38 #include "core/animation/ElementAnimations.h" 39 #include "core/animation/ElementAnimations.h"
39 #include "core/animation/Interpolation.h" 40 #include "core/animation/Interpolation.h"
40 #include "core/animation/KeyframeEffectModel.h" 41 #include "core/animation/KeyframeEffectModel.h"
41 #include "core/animation/KeyframeEffectOptions.h" 42 #include "core/animation/KeyframeEffectOptions.h"
42 #include "core/animation/KeyframeEffectReadOnly.h" 43 #include "core/animation/KeyframeEffectReadOnly.h"
43 #include "core/animation/PropertyHandle.h" 44 #include "core/animation/PropertyHandle.h"
44 #include "core/dom/Element.h" 45 #include "core/dom/Element.h"
45 #include "core/dom/NodeComputedStyle.h" 46 #include "core/dom/NodeComputedStyle.h"
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 CompositorAnimations::pauseAnimationForTestingOnCompositor( 378 CompositorAnimations::pauseAnimationForTestingOnCompositor(
378 *m_target, *animation(), compositorAnimationId, pauseTime); 379 *m_target, *animation(), compositorAnimationId, pauseTime);
379 } 380 }
380 381
381 void KeyframeEffect::attachCompositedLayers() { 382 void KeyframeEffect::attachCompositedLayers() {
382 DCHECK(m_target); 383 DCHECK(m_target);
383 DCHECK(animation()); 384 DCHECK(animation());
384 CompositorAnimations::attachCompositedLayers(*m_target, *animation()); 385 CompositorAnimations::attachCompositedLayers(*m_target, *animation());
385 } 386 }
386 387
388 AnimationEffectTiming* KeyframeEffect::timing() {
389 return AnimationEffectTiming::create(this);
390 }
391
387 DEFINE_TRACE(KeyframeEffect) { 392 DEFINE_TRACE(KeyframeEffect) {
388 KeyframeEffectReadOnly::trace(visitor); 393 KeyframeEffectReadOnly::trace(visitor);
389 } 394 }
390 395
391 } // namespace blink 396 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/KeyframeEffect.h ('k') | third_party/WebKit/Source/core/core_idl_files.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698