Home | History | Annotate | Download | only in animation

Lines Matching refs:anim

89 static inline Color blendFunc(const AnimationBase* anim, const Color& from, const Color& to, double progress)
100 Color premultBlended(blendFunc(anim, premultFrom.red(), premultTo.red(), progress),
101 blendFunc(anim, premultFrom.green(), premultTo.green(), progress),
102 blendFunc(anim, premultFrom.blue(), premultTo.blue(), progress),
103 blendFunc(anim, premultFrom.alpha(), premultTo.alpha(), progress));
113 static inline LengthSize blendFunc(const AnimationBase* anim, const LengthSize& from, const LengthSize& to, double progress)
115 return LengthSize(blendFunc(anim, from.width(), to.width(), progress),
116 blendFunc(anim, from.height(), to.height(), progress));
119 static inline IntSize blendFunc(const AnimationBase* anim, const IntSize& from, const IntSize& to, double progress)
121 return IntSize(blendFunc(anim, from.width(), to.width(), progress),
122 blendFunc(anim, from.height(), to.height(), progress));
125 static inline ShadowStyle blendFunc(const AnimationBase* anim, ShadowStyle from, ShadowStyle to, double progress)
132 double result = blendFunc(anim, fromVal, toVal, progress);
136 static inline ShadowData* blendFunc(const AnimationBase* anim, const ShadowData* from, const ShadowData* to, double progress)
139 return new ShadowData(blendFunc(anim, from->x, to->x, progress), blendFunc(anim, from->y, to->y, progress),
140 blendFunc(anim, from->blur, to->blur, progress), blendFunc(anim, from->spread, to->spread, progress),
141 blendFunc(anim, from->style, to->style, progress), blendFunc(anim, from->color, to->color, progress));
144 static inline TransformOperations blendFunc(const AnimationBase* anim, const TransformOperations& from, const TransformOperations& to, double progress)
149 if (anim->isTransformFunctionListValid()) {
169 IntSize size = anim->renderer()->isBox() ? toRenderBox(anim->renderer())->borderBoxRect().size() : IntSize();
183 static inline EVisibility blendFunc(const AnimationBase* anim, EVisibility from, EVisibility to, double progress)
191 double result = blendFunc(anim, fromVal, toVal, progress);
211 virtual void blend(const AnimationBase* anim, RenderStyle* dst, const RenderStyle* a, const RenderStyle* b, double progress) const = 0;
256 virtual void blend(const AnimationBase* anim, RenderStyle* dst, const RenderStyle* a, const RenderStyle* b, double progress) const
258 (dst->*m_setter)(blendFunc(anim, (a->*PropertyWrapperGetter<T>::m_getter)(), (b->*PropertyWrapperGetter<T>::m_getter)(), progress));
275 virtual void blend(const AnimationBase* anim, RenderStyle* dst, const RenderStyle* a, const RenderStyle* b, double progress) const
280 dst->setOpacity(blendFunc(anim, (fromOpacity == 1) ? 0.999999f : fromOpacity, b->opacity(), progress));
293 virtual void blend(const AnimationBase* anim, RenderStyle* dst, const RenderStyle* a, const RenderStyle* b, double progress) const
295 dst->setTransform(blendFunc(anim, a->transform(), b->transform(), progress));
330 virtual void blend(const AnimationBase* anim, RenderStyle* dst, const RenderStyle* a, const RenderStyle* b, double progress) const
343 newShadowData = blendFunc(anim, srcShadow, dstShadow, progress);
345 newShadowData->next = blendFunc(anim, srcShadow, dstShadow, progress);
383 virtual void blend(const AnimationBase* anim, RenderStyle* dst, const RenderStyle* a, const RenderStyle* b, double progress) const
395 (dst->*m_setter)(blendFunc(anim, fromColor, toColor, progress));
413 virtual void blend(const AnimationBase* anim, FillLayer* dst, const FillLayer* a, const FillLayer* b, double progress) const = 0;
448 virtual void blend(const AnimationBase* anim, FillLayer* dst, const FillLayer* a, const FillLayer* b, double progress) const
450 (dst->*m_setter)(blendFunc(anim, (a->*FillLayerPropertyWrapperGetter<T>::m_getter)(), (b->*FillLayerPropertyWrapperGetter<T>::m_getter)(), progress));
501 virtual void blend(const AnimationBase* anim, RenderStyle* dst, const RenderStyle* a, const RenderStyle* b, double progress) const
508 m_fillLayerPropertyWrapper->blend(anim, dstLayer, aLayer, bLayer, progress);
546 virtual void blend(const AnimationBase* anim, RenderStyle* dst, const RenderStyle* a, const RenderStyle* b, double progress) const
550 (*it)->blend(anim, dst, a, b, progress);
813 bool AnimationBase::blendProperties(const AnimationBase* anim, int prop, RenderStyle* dst, const RenderStyle* a, const RenderStyle* b, double progress)
820 wrapper->blend(anim, dst, a, b, progress);
822 return !wrapper->animationIsAccelerated() || anim->isFallbackAnimating();
857 bool AnimationBase::animationsMatch(const Animation* anim) const
859 return m_animation->animationsMatch(anim);