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

Side by Side Diff: Source/core/animation/AnimationNodeTiming.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/animation/AnimationNode.cpp ('k') | Source/core/animation/AnimationPlayer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "config.h" 5 #include "config.h"
6 #include "core/animation/AnimationNodeTiming.h" 6 #include "core/animation/AnimationNodeTiming.h"
7 7
8 #include "core/animation/Animation.h" 8 #include "core/animation/Animation.h"
9 #include "core/animation/AnimationNode.h" 9 #include "core/animation/AnimationNode.h"
10 #include "platform/animation/TimingFunction.h" 10 #include "platform/animation/TimingFunction.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 PassRefPtrWillBeRawPtr<AnimationNodeTiming> AnimationNodeTiming::create(Animatio nNode* parent) 14 PassRefPtrWillBeRawPtr<AnimationNodeTiming> AnimationNodeTiming::create(Animatio nNode* parent)
15 { 15 {
16 return adoptRefWillBeNoop(new AnimationNodeTiming(parent)); 16 return adoptRefWillBeNoop(new AnimationNodeTiming(parent));
17 } 17 }
18 18
19 AnimationNodeTiming::AnimationNodeTiming(AnimationNode* parent) 19 AnimationNodeTiming::AnimationNodeTiming(AnimationNode* parent)
20 : m_parent(parent) 20 : m_parent(parent)
21 { 21 {
22 ScriptWrappable::init(this);
23 } 22 }
24 23
25 double AnimationNodeTiming::delay() 24 double AnimationNodeTiming::delay()
26 { 25 {
27 return m_parent->specifiedTiming().startDelay * 1000; 26 return m_parent->specifiedTiming().startDelay * 1000;
28 } 27 }
29 28
30 double AnimationNodeTiming::endDelay() 29 double AnimationNodeTiming::endDelay()
31 { 30 {
32 return m_parent->specifiedTiming().endDelay * 1000; 31 return m_parent->specifiedTiming().endDelay * 1000;
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 TimingInput::setTimingFunction(timing, easing); 169 TimingInput::setTimingFunction(timing, easing);
171 m_parent->updateSpecifiedTiming(timing); 170 m_parent->updateSpecifiedTiming(timing);
172 } 171 }
173 172
174 void AnimationNodeTiming::trace(Visitor* visitor) 173 void AnimationNodeTiming::trace(Visitor* visitor)
175 { 174 {
176 visitor->trace(m_parent); 175 visitor->trace(m_parent);
177 } 176 }
178 177
179 } // namespace blink 178 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/animation/AnimationNode.cpp ('k') | Source/core/animation/AnimationPlayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698