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

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

Issue 2228773002: Remove AnimationEffectTimingProperties playbackRate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@idl-updates
Patch Set: Add TODO Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/AnimationEffectTimingProperties.idl » ('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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 computedTiming.setDelay(specifiedTiming().startDelay * 1000); 114 computedTiming.setDelay(specifiedTiming().startDelay * 1000);
115 computedTiming.setEndDelay(specifiedTiming().endDelay * 1000); 115 computedTiming.setEndDelay(specifiedTiming().endDelay * 1000);
116 computedTiming.setFill(Timing::fillModeString(resolvedFillMode(specifiedTimi ng().fillMode, isKeyframeEffect()))); 116 computedTiming.setFill(Timing::fillModeString(resolvedFillMode(specifiedTimi ng().fillMode, isKeyframeEffect())));
117 computedTiming.setIterationStart(specifiedTiming().iterationStart); 117 computedTiming.setIterationStart(specifiedTiming().iterationStart);
118 computedTiming.setIterations(specifiedTiming().iterationCount); 118 computedTiming.setIterations(specifiedTiming().iterationCount);
119 119
120 UnrestrictedDoubleOrString duration; 120 UnrestrictedDoubleOrString duration;
121 duration.setUnrestrictedDouble(iterationDuration() * 1000); 121 duration.setUnrestrictedDouble(iterationDuration() * 1000);
122 computedTiming.setDuration(duration); 122 computedTiming.setDuration(duration);
123 123
124 computedTiming.setPlaybackRate(specifiedTiming().playbackRate);
125 computedTiming.setDirection(Timing::playbackDirectionString(specifiedTiming( ).direction)); 124 computedTiming.setDirection(Timing::playbackDirectionString(specifiedTiming( ).direction));
126 computedTiming.setEasing(specifiedTiming().timingFunction->toString()); 125 computedTiming.setEasing(specifiedTiming().timingFunction->toString());
127 } 126 }
128 127
129 ComputedTimingProperties AnimationEffect::getComputedTiming() 128 ComputedTimingProperties AnimationEffect::getComputedTiming()
130 { 129 {
131 ComputedTimingProperties result; 130 ComputedTimingProperties result;
132 getComputedTiming(result); 131 getComputedTiming(result);
133 return result; 132 return result;
134 } 133 }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 return AnimationEffectTiming::create(this); 232 return AnimationEffectTiming::create(this);
234 } 233 }
235 234
236 DEFINE_TRACE(AnimationEffect) 235 DEFINE_TRACE(AnimationEffect)
237 { 236 {
238 visitor->trace(m_animation); 237 visitor->trace(m_animation);
239 visitor->trace(m_eventDelegate); 238 visitor->trace(m_eventDelegate);
240 } 239 }
241 240
242 } // namespace blink 241 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/AnimationEffectTimingProperties.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698