| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef ImplicitAnimation_h | 29 #ifndef ImplicitAnimation_h |
| 30 #define ImplicitAnimation_h | 30 #define ImplicitAnimation_h |
| 31 | 31 |
| 32 #include "AnimationBase.h" | |
| 33 #include "CSSPropertyNames.h" | 32 #include "CSSPropertyNames.h" |
| 34 #include "Document.h" | 33 #include "Document.h" |
| 34 #include "core/page/animation/AnimationBase.h" |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 // An ImplicitAnimation tracks the state of a transition of a specific CSS prope
rty | 38 // An ImplicitAnimation tracks the state of a transition of a specific CSS prope
rty |
| 39 // for a single RenderObject. | 39 // for a single RenderObject. |
| 40 class ImplicitAnimation : public AnimationBase { | 40 class ImplicitAnimation : public AnimationBase { |
| 41 public: | 41 public: |
| 42 static PassRefPtr<ImplicitAnimation> create(const Animation* animation, CSSP
ropertyID animatingProperty, RenderObject* renderer, CompositeAnimation* composi
teAnimation, RenderStyle* fromStyle) | 42 static PassRefPtr<ImplicitAnimation> create(const Animation* animation, CSSP
ropertyID animatingProperty, RenderObject* renderer, CompositeAnimation* composi
teAnimation, RenderStyle* fromStyle) |
| 43 { | 43 { |
| 44 return adoptRef(new ImplicitAnimation(animation, animatingProperty, rend
erer, compositeAnimation, fromStyle)); | 44 return adoptRef(new ImplicitAnimation(animation, animatingProperty, rend
erer, compositeAnimation, fromStyle)); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 bool m_active; // used for culling the list of transitions | 89 bool m_active; // used for culling the list of transitions |
| 90 | 90 |
| 91 // The two styles that we are blending. | 91 // The two styles that we are blending. |
| 92 RefPtr<RenderStyle> m_fromStyle; | 92 RefPtr<RenderStyle> m_fromStyle; |
| 93 RefPtr<RenderStyle> m_toStyle; | 93 RefPtr<RenderStyle> m_toStyle; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace WebCore | 96 } // namespace WebCore |
| 97 | 97 |
| 98 #endif // ImplicitAnimation_h | 98 #endif // ImplicitAnimation_h |
| OLD | NEW |