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 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
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/AnimationEffectReadOnly.h" | 31 #include "core/animation/AnimationEffectReadOnly.h" |
32 | 32 |
33 #include "core/animation/Animation.h" | 33 #include "core/animation/Animation.h" |
34 #include "core/animation/AnimationEffectTiming.h" | 34 #include "core/animation/AnimationEffectTimingReadOnly.h" |
35 #include "core/animation/ComputedTimingProperties.h" | 35 #include "core/animation/ComputedTimingProperties.h" |
36 #include "core/animation/TimingCalculations.h" | 36 #include "core/animation/TimingCalculations.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 namespace { | 40 namespace { |
41 | 41 |
42 Timing::FillMode resolvedFillMode(Timing::FillMode fillMode, bool isAnimation) { | 42 Timing::FillMode resolvedFillMode(Timing::FillMode fillMode, bool isAnimation) { |
43 if (fillMode != Timing::FillMode::AUTO) | 43 if (fillMode != Timing::FillMode::AUTO) |
44 return fillMode; | 44 return fillMode; |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 const AnimationEffectReadOnly::CalculatedTiming& | 256 const AnimationEffectReadOnly::CalculatedTiming& |
257 AnimationEffectReadOnly::ensureCalculated() const { | 257 AnimationEffectReadOnly::ensureCalculated() const { |
258 if (!m_animation) | 258 if (!m_animation) |
259 return m_calculated; | 259 return m_calculated; |
260 if (m_animation->outdated()) | 260 if (m_animation->outdated()) |
261 m_animation->update(TimingUpdateOnDemand); | 261 m_animation->update(TimingUpdateOnDemand); |
262 DCHECK(!m_animation->outdated()); | 262 DCHECK(!m_animation->outdated()); |
263 return m_calculated; | 263 return m_calculated; |
264 } | 264 } |
265 | 265 |
266 AnimationEffectTiming* AnimationEffectReadOnly::timing() { | 266 AnimationEffectTimingReadOnly* AnimationEffectReadOnly::timing() { |
267 return AnimationEffectTiming::create(this); | 267 return AnimationEffectTimingReadOnly::create(this); |
268 } | 268 } |
269 | 269 |
270 DEFINE_TRACE(AnimationEffectReadOnly) { | 270 DEFINE_TRACE(AnimationEffectReadOnly) { |
271 visitor->trace(m_animation); | 271 visitor->trace(m_animation); |
272 visitor->trace(m_eventDelegate); | 272 visitor->trace(m_eventDelegate); |
273 } | 273 } |
274 | 274 |
275 } // namespace blink | 275 } // namespace blink |
OLD | NEW |