Changeset 287678 in webkit for trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
- Timestamp:
- Jan 6, 2022, 2:46:20 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r287669 r287678 1435 1435 void ComputedStyleExtractor::addValueForAnimationPropertyToList(CSSValueList& list, CSSPropertyID property, const Animation* animation) 1436 1436 { 1437 if (property == CSSPropertyAnimationDuration || property == CSSPropertyTransitionDuration) 1438 list.append(valueForAnimationDuration(animation ? animation->duration() : Animation::initialDuration())); 1439 else if (property == CSSPropertyAnimationDelay || property == CSSPropertyTransitionDelay) 1440 list.append(valueForAnimationDelay(animation ? animation->delay() : Animation::initialDelay())); 1441 else if (property == CSSPropertyAnimationIterationCount) 1442 list.append(valueForAnimationIterationCount(animation ? animation->iterationCount() : Animation::initialIterationCount())); 1443 else if (property == CSSPropertyAnimationDirection) 1444 list.append(valueForAnimationDirection(animation ? animation->direction() : Animation::initialDirection())); 1445 else if (property == CSSPropertyAnimationFillMode) 1446 list.append(valueForAnimationFillMode(animation ? animation->fillMode() : Animation::initialFillMode())); 1447 else if (property == CSSPropertyAnimationPlayState) 1448 list.append(valueForAnimationPlayState(animation ? animation->playState() : Animation::initialPlayState())); 1449 else if (property == CSSPropertyAnimationName) 1437 if (property == CSSPropertyAnimationDuration || property == CSSPropertyTransitionDuration) { 1438 if (!animation || !animation->isDurationFilled()) 1439 list.append(valueForAnimationDuration(animation ? animation->duration() : Animation::initialDuration())); 1440 } else if (property == CSSPropertyAnimationDelay || property == CSSPropertyTransitionDelay) { 1441 if (!animation || !animation->isDelayFilled()) 1442 list.append(valueForAnimationDelay(animation ? animation->delay() : Animation::initialDelay())); 1443 } else if (property == CSSPropertyAnimationIterationCount) { 1444 if (!animation || !animation->isIterationCountFilled()) 1445 list.append(valueForAnimationIterationCount(animation ? animation->iterationCount() : Animation::initialIterationCount())); 1446 } else if (property == CSSPropertyAnimationDirection) { 1447 if (!animation || !animation->isDirectionFilled()) 1448 list.append(valueForAnimationDirection(animation ? animation->direction() : Animation::initialDirection())); 1449 } else if (property == CSSPropertyAnimationFillMode) { 1450 if (!animation || !animation->isFillModeFilled()) 1451 list.append(valueForAnimationFillMode(animation ? animation->fillMode() : Animation::initialFillMode())); 1452 } else if (property == CSSPropertyAnimationPlayState) { 1453 if (!animation || !animation->isPlayStateFilled()) 1454 list.append(valueForAnimationPlayState(animation ? animation->playState() : Animation::initialPlayState())); 1455 } else if (property == CSSPropertyAnimationName) 1450 1456 list.append(valueForAnimationName(animation ? animation->name() : Animation::initialName())); 1451 1457 else if (property == CSSPropertyTransitionProperty) { 1452 if (animation) 1453 list.append(createTransitionPropertyValue(*animation)); 1454 else 1458 if (animation) { 1459 if (!animation->isPropertyFilled()) 1460 list.append(createTransitionPropertyValue(*animation)); 1461 } else 1455 1462 list.append(CSSValuePool::singleton().createIdentifierValue(CSSValueAll)); 1456 1463 } else if (property == CSSPropertyAnimationTimingFunction || property == CSSPropertyTransitionTimingFunction) { 1457 if (animation) 1458 list.append(valueForAnimationTimingFunction(*animation->timingFunction())); 1459 else 1464 if (animation) { 1465 if (!animation->isTimingFunctionFilled()) 1466 list.append(valueForAnimationTimingFunction(*animation->timingFunction())); 1467 } else 1460 1468 list.append(valueForAnimationTimingFunction(CubicBezierTimingFunction::defaultTimingFunction())); 1461 1469 } else
Note:
See TracChangeset
for help on using the changeset viewer.