OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2012 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "core/frame/animation/CSSPropertyAnimation.h" | 37 #include "core/frame/animation/CSSPropertyAnimation.h" |
38 #include "core/frame/animation/CompositeAnimation.h" | 38 #include "core/frame/animation/CompositeAnimation.h" |
39 #include "core/rendering/RenderBoxModelObject.h" | 39 #include "core/rendering/RenderBoxModelObject.h" |
40 #include "core/rendering/style/RenderStyle.h" | 40 #include "core/rendering/style/RenderStyle.h" |
41 #include "public/platform/Platform.h" | 41 #include "public/platform/Platform.h" |
42 | 42 |
43 using namespace std; | 43 using namespace std; |
44 | 44 |
45 namespace WebCore { | 45 namespace WebCore { |
46 | 46 |
47 KeyframeAnimation::KeyframeAnimation(const CSSAnimationData* animation, RenderOb
ject* renderer, int index, CompositeAnimation* compAnim, RenderStyle* unanimated
Style) | 47 KeyframeAnimation::KeyframeAnimation(const CSSAnimationData* animation, RenderOb
ject& renderer, int index, CompositeAnimation* compAnim, RenderStyle& unanimated
Style) |
48 : AnimationBase(animation, renderer, compAnim) | 48 : AnimationBase(animation, renderer, compAnim) |
49 , m_keyframes(renderer, animation->name()) | 49 , m_keyframes(renderer, animation->name()) |
50 , m_index(index) | 50 , m_index(index) |
51 , m_startEventDispatched(false) | 51 , m_startEventDispatched(false) |
52 , m_unanimatedStyle(unanimatedStyle) | 52 , m_unanimatedStyle(unanimatedStyle) |
53 { | 53 { |
54 // Get the keyframe RenderStyles | 54 // Get the keyframe RenderStyles |
55 if (m_object && m_object->node() && m_object->node()->isElementNode()) | 55 if (m_object && m_object->node() && m_object->node()->isElementNode()) |
56 m_object->document().styleResolver()->keyframeStylesForAnimation(toEleme
nt(m_object->node()), unanimatedStyle, m_keyframes); | 56 m_object->document().styleResolver()->keyframeStylesForAnimation(toEleme
nt(m_object->node()), unanimatedStyle, m_keyframes); |
57 | 57 |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 | 448 |
449 if (acceleratedPropertiesOnly) { | 449 if (acceleratedPropertiesOnly) { |
450 bool isLooping; | 450 bool isLooping; |
451 getTimeToNextEvent(t, isLooping); | 451 getTimeToNextEvent(t, isLooping); |
452 } | 452 } |
453 | 453 |
454 return t; | 454 return t; |
455 } | 455 } |
456 | 456 |
457 } // namespace WebCore | 457 } // namespace WebCore |
OLD | NEW |