| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |