• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/WebCore-7537.78.1/platform/graphics/ca/

Lines Matching refs:valueList

252 static bool animationHasStepsTimingFunction(const KeyframeValueList& valueList, const Animation* anim)
257 for (unsigned i = 0; i < valueList.size(); ++i) {
258 if (const TimingFunction* timingFunction = valueList.at(i).timingFunction()) {
699 bool GraphicsLayerCA::addAnimation(const KeyframeValueList& valueList, const IntSize& boxSize, const Animation* anim, const String& animationName, double timeOffset)
703 if (!anim || anim->isEmptyOrZeroDuration() || valueList.size() < 2)
708 if (animationHasStepsTimingFunction(valueList, anim))
712 if (valueList.property() == AnimatedPropertyWebkitTransform)
713 createdAnimations = createTransformAnimationsFromKeyframes(valueList, anim, animationName, timeOffset, boxSize);
715 else if (valueList.property() == AnimatedPropertyWebkitFilter) {
717 createdAnimations = createFilterAnimationsFromKeyframes(valueList, anim, animationName, timeOffset);
721 createdAnimations = createAnimationFromKeyframes(valueList, anim, animationName, timeOffset);
2056 bool GraphicsLayerCA::createAnimationFromKeyframes(const KeyframeValueList& valueList, const Animation* animation, const String& animationName, double timeOffset)
2058 ASSERT(valueList.property() != AnimatedPropertyWebkitTransform && (!supportsAcceleratedFilterAnimations() || valueList.property() != AnimatedPropertyWebkitFilter));
2060 bool isKeyframe = valueList.size() > 2;
2069 caAnimation = createKeyframeAnimation(animation, propertyIdToString(valueList.property()), additive);
2070 valuesOK = setAnimationKeyframes(valueList, animation, caAnimation.get());
2072 caAnimation = createBasicAnimation(animation, propertyIdToString(valueList.property()), additive);
2073 valuesOK = setAnimationEndpoints(valueList, animation, caAnimation.get());
2079 m_uncomittedAnimations.append(LayerPropertyAnimation(caAnimation, animationName, valueList.property(), animationIndex, 0, timeOffset));
2084 bool GraphicsLayerCA::appendToUncommittedAnimations(const KeyframeValueList& valueList, const TransformOperations* operations, const Animation* animation, const String& animationName, const IntSize& boxSize, int animationIndex, double timeOffset, bool isMatrixAnimation)
2088 bool isKeyframe = valueList.size() > 2;
2093 caAnimation = createKeyframeAnimation(animation, propertyIdToString(valueList.property()), additive);
2094 validMatrices = setTransformAnimationKeyframes(valueList, animation, caAnimation.get(), animationIndex, transformOp, isMatrixAnimation, boxSize);
2096 caAnimation = createBasicAnimation(animation, propertyIdToString(valueList.property()), additive);
2097 validMatrices = setTransformAnimationEndpoints(valueList, animation, caAnimation.get(), animationIndex, transformOp, isMatrixAnimation, boxSize);
2103 m_uncomittedAnimations.append(LayerPropertyAnimation(caAnimation, animationName, valueList.property(), animationIndex, 0, timeOffset));
2107 bool GraphicsLayerCA::createTransformAnimationsFromKeyframes(const KeyframeValueList& valueList, const Animation* animation, const String& animationName, double timeOffset, const IntSize& boxSize)
2109 ASSERT(valueList.property() == AnimatedPropertyWebkitTransform);
2112 int listIndex = validateTransformOperations(valueList, hasBigRotation);
2113 const TransformOperations* operations = (listIndex >= 0) ? &static_cast<const TransformAnimationValue&>(valueList.at(listIndex)).value() : 0;
2142 if (!appendToUncommittedAnimations(valueList, operations, animation, animationName, boxSize, animationIndex, timeOffset, isMatrixAnimation)) {
2149 if (!appendToUncommittedAnimations(valueList, operations, animation, animationName, boxSize, animationIndex, timeOffset, isMatrixAnimation)) {
2160 bool GraphicsLayerCA::appendToUncommittedAnimations(const KeyframeValueList& valueList, const FilterOperation* operation, const Animation* animation, const String& animationName, int animationIndex, double timeOffset)
2162 bool isKeyframe = valueList.size() > 2;
2181 valuesOK = setFilterAnimationKeyframes(valueList, animation, caAnimation.get(), animationIndex, internalFilterPropertyIndex, filterOp);
2184 valuesOK = setFilterAnimationEndpoints(valueList, animation, caAnimation.get(), animationIndex, internalFilterPropertyIndex);
2189 m_uncomittedAnimations.append(LayerPropertyAnimation(caAnimation, animationName, valueList.property(), animationIndex, internalFilterPropertyIndex, timeOffset));
2195 bool GraphicsLayerCA::createFilterAnimationsFromKeyframes(const KeyframeValueList& valueList, const Animation* animation, const String& animationName, double timeOffset)
2197 ASSERT(valueList.property() == AnimatedPropertyWebkitFilter);
2199 int listIndex = validateFilterOperations(valueList);
2203 const FilterOperations& operations = static_cast<const FilterAnimationValue&>(valueList.at(listIndex)).value();
2217 if (!appendToUncommittedAnimations(valueList, operations.operations().at(animationIndex).get(), animation, animationName, animationIndex, timeOffset))
2285 bool GraphicsLayerCA::setAnimationEndpoints(const KeyframeValueList& valueList, const Animation* animation, PlatformCAAnimation* basicAnim)
2292 switch (valueList.property()) {
2294 basicAnim->setFromValue(static_cast<const FloatAnimationValue&>(valueList.at(fromIndex)).value());
2295 basicAnim->setToValue(static_cast<const FloatAnimationValue&>(valueList.at(toIndex)).value());
2305 const TimingFunction* timingFunction = timingFunctionForAnimationValue(valueList.at(0), *animation);
2312 bool GraphicsLayerCA::setAnimationKeyframes(const KeyframeValueList& valueList, const Animation* animation, PlatformCAAnimation* keyframeAnim)
2320 for (unsigned i = 0; i < valueList.size(); ++i) {
2321 unsigned index = forwards ? i : (valueList.size() - i - 1);
2322 const AnimationValue& curValue = valueList.at(index);
2325 switch (valueList.property()) {
2336 if (i < (valueList.size() - 1))
2337 timingFunctions.append(timingFunctionForAnimationValue(forwards ? curValue : valueList.at(index - 1), *animation));
2347 bool GraphicsLayerCA::setTransformAnimationEndpoints(const KeyframeValueList& valueList, const Animation* animation, PlatformCAAnimation* basicAnim, int functionIndex, TransformOperation::OperationType transformOpType, bool isMatrixAnimation, const IntSize& boxSize)
2349 ASSERT(valueList.size() == 2);
2356 const TransformAnimationValue& startValue = static_cast<const TransformAnimationValue&>(valueList.at(fromIndex));
2357 const TransformAnimationValue& endValue = static_cast<const TransformAnimationValue&>(valueList.at(toIndex));
2400 const TimingFunction* timingFunction = timingFunctionForAnimationValue(valueList.at(0), *animation);
2410 bool GraphicsLayerCA::setTransformAnimationKeyframes(const KeyframeValueList& valueList, const Animation* animation, PlatformCAAnimation* keyframeAnim, int functionIndex, TransformOperation::OperationType transformOpType, bool isMatrixAnimation, const IntSize& boxSize)
2420 for (unsigned i = 0; i < valueList.size(); ++i) {
2421 unsigned index = forwards ? i : (valueList.size() - i - 1);
2422 const TransformAnimationValue& curValue = static_cast<const TransformAnimationValue&>(valueList.at(index));
2451 if (i < (valueList.size() - 1))
2452 timingFunctions.append(timingFunctionForAnimationValue(forwards ? curValue : valueList.at(index - 1), *animation));
2474 bool GraphicsLayerCA::setFilterAnimationEndpoints(const KeyframeValueList& valueList, const Animation* animation, PlatformCAAnimation* basicAnim, int functionIndex, int internalFilterPropertyIndex)
2476 ASSERT(valueList.size() == 2);
2483 const FilterAnimationValue& fromValue = static_cast<const FilterAnimationValue&>(valueList.at(fromIndex));
2484 const FilterAnimationValue& toValue = static_cast<const FilterAnimationValue&>(valueList.at(toIndex));
2509 basicAnim->setTimingFunction(timingFunctionForAnimationValue(valueList.at(0), *animation), !forwards);
2514 bool GraphicsLayerCA::setFilterAnimationKeyframes(const KeyframeValueList& valueList, const Animation* animation, PlatformCAAnimation* keyframeAnim, int functionIndex, int internalFilterPropertyIndex, FilterOperation::OperationType filterOp)
2523 for (unsigned i = 0; i < valueList.size(); ++i) {
2524 unsigned index = forwards ? i : (valueList.size() - i - 1);
2525 const FilterAnimationValue& curValue = static_cast<const FilterAnimationValue&>(valueList.at(index));
2536 if (i < (valueList.size() - 1))
2537 timingFunctions.append(timingFunctionForAnimationValue(forwards ? curValue : valueList.at(index - 1), *animation));