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

Side by Side Diff: Source/core/animation/AnimationNode.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/AnimationEffect.h ('k') | Source/core/animation/AnimationNodeTiming.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 /* 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 AnimationNode::AnimationNode(const Timing& timing, PassOwnPtrWillBeRawPtr<EventD elegate> eventDelegate) 53 AnimationNode::AnimationNode(const Timing& timing, PassOwnPtrWillBeRawPtr<EventD elegate> eventDelegate)
54 : m_parent(nullptr) 54 : m_parent(nullptr)
55 , m_startTime(0) 55 , m_startTime(0)
56 , m_player(nullptr) 56 , m_player(nullptr)
57 , m_timing(timing) 57 , m_timing(timing)
58 , m_eventDelegate(eventDelegate) 58 , m_eventDelegate(eventDelegate)
59 , m_calculated() 59 , m_calculated()
60 , m_needsUpdate(true) 60 , m_needsUpdate(true)
61 , m_lastUpdateTime(nullValue()) 61 , m_lastUpdateTime(nullValue())
62 { 62 {
63 ScriptWrappable::init(this);
64 m_timing.assertValid(); 63 m_timing.assertValid();
65 } 64 }
66 65
67 double AnimationNode::iterationDuration() const 66 double AnimationNode::iterationDuration() const
68 { 67 {
69 double result = std::isnan(m_timing.iterationDuration) ? intrinsicIterationD uration() : m_timing.iterationDuration; 68 double result = std::isnan(m_timing.iterationDuration) ? intrinsicIterationD uration() : m_timing.iterationDuration;
70 ASSERT(result >= 0); 69 ASSERT(result >= 0);
71 return result; 70 return result;
72 } 71 }
73 72
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 } 187 }
189 188
190 void AnimationNode::trace(Visitor* visitor) 189 void AnimationNode::trace(Visitor* visitor)
191 { 190 {
192 visitor->trace(m_parent); 191 visitor->trace(m_parent);
193 visitor->trace(m_player); 192 visitor->trace(m_player);
194 visitor->trace(m_eventDelegate); 193 visitor->trace(m_eventDelegate);
195 } 194 }
196 195
197 } // namespace blink 196 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/animation/AnimationEffect.h ('k') | Source/core/animation/AnimationNodeTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698