diff options
Diffstat (limited to 'Source/WebCore/page/animation/ImplicitAnimation.h')
| -rw-r--r-- | Source/WebCore/page/animation/ImplicitAnimation.h | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/Source/WebCore/page/animation/ImplicitAnimation.h b/Source/WebCore/page/animation/ImplicitAnimation.h index a9a30f1e2..df651141e 100644 --- a/Source/WebCore/page/animation/ImplicitAnimation.h +++ b/Source/WebCore/page/animation/ImplicitAnimation.h @@ -10,7 +10,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. Neither the name of Apple Inc. ("Apple") nor the names of + * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * @@ -41,9 +41,9 @@ class RenderElement; // for a single RenderElement. class ImplicitAnimation : public AnimationBase { public: - static Ref<ImplicitAnimation> create(Animation& animation, CSSPropertyID animatingProperty, RenderElement* renderer, CompositeAnimation* compositeAnimation, RenderStyle* fromStyle) + static PassRefPtr<ImplicitAnimation> create(const Animation& animation, CSSPropertyID animatingProperty, RenderElement* renderer, CompositeAnimation* compositeAnimation, RenderStyle* fromStyle) { - return adoptRef(*new ImplicitAnimation(animation, animatingProperty, renderer, compositeAnimation, fromStyle)); + return adoptRef(new ImplicitAnimation(animation, animatingProperty, renderer, compositeAnimation, fromStyle)); }; CSSPropertyID transitionProperty() const { return m_transitionProperty; } @@ -54,12 +54,10 @@ public: virtual void pauseAnimation(double timeOffset) override; virtual void endAnimation() override; - virtual bool animate(CompositeAnimation*, RenderElement*, const RenderStyle* currentStyle, RenderStyle* targetStyle, RefPtr<RenderStyle>& animatedStyle) override; + virtual void animate(CompositeAnimation*, RenderElement*, const RenderStyle* currentStyle, RenderStyle* targetStyle, RefPtr<RenderStyle>& animatedStyle) override; virtual void getAnimatedStyle(RefPtr<RenderStyle>& animatedStyle) override; virtual void reset(RenderStyle* to); - bool computeExtentOfTransformAnimation(LayoutRect&) const override; - void setOverridden(bool); virtual bool overridden() const override { return m_overridden; } @@ -81,24 +79,22 @@ protected: bool sendTransitionEvent(const AtomicString&, double elapsedTime); void validateTransformFunctionList(); +#if ENABLE(CSS_FILTERS) void checkForMatchingFilterFunctionLists(); -#if ENABLE(FILTERS_LEVEL_2) - void checkForMatchingBackdropFilterFunctionLists(); #endif private: - ImplicitAnimation(Animation&, CSSPropertyID, RenderElement*, CompositeAnimation*, RenderStyle*); + ImplicitAnimation(const Animation&, CSSPropertyID, RenderElement*, CompositeAnimation*, RenderStyle*); virtual ~ImplicitAnimation(); - // The two styles that we are blending. - RefPtr<RenderStyle> m_fromStyle; - RefPtr<RenderStyle> m_toStyle; - CSSPropertyID m_transitionProperty; // Transition property as specified in the RenderStyle. CSSPropertyID m_animatingProperty; // Specific property for this ImplicitAnimation + bool m_overridden; // true when there is a keyframe animation that overrides the transitioning property + bool m_active; // used for culling the list of transitions - bool m_active { true }; // Used for culling the list of transitions. - bool m_overridden { false }; // True when there is a keyframe animation that overrides the transitioning property + // The two styles that we are blending. + RefPtr<RenderStyle> m_fromStyle; + RefPtr<RenderStyle> m_toStyle; }; } // namespace WebCore |
