Changeset 287535 in webkit for trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
- Timestamp:
- Jan 3, 2022, 3:55:54 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r287534 r287535 1484 1484 list->append(ComputedStyleExtractor::valueForAnimationTimingFunction(Animation::initialTimingFunction())); 1485 1485 return list; 1486 } 1487 1488 static Ref<CSSValueList> animationShorthandValue(const AnimationList* animationList) 1489 { 1490 auto parentList = CSSValueList::createCommaSeparated(); 1491 if (animationList) { 1492 for (size_t i = 0; i < animationList->size(); ++i) { 1493 const auto& animation = animationList->animation(i); 1494 auto childList = CSSValueList::createSpaceSeparated(); 1495 childList->append(ComputedStyleExtractor::valueForAnimationDuration(animation.duration())); 1496 childList->append(ComputedStyleExtractor::valueForAnimationTimingFunction(*animation.timingFunction())); 1497 childList->append(ComputedStyleExtractor::valueForAnimationDelay(animation.delay())); 1498 childList->append(ComputedStyleExtractor::valueForAnimationIterationCount(animation.iterationCount())); 1499 childList->append(ComputedStyleExtractor::valueForAnimationDirection(animation.direction())); 1500 childList->append(ComputedStyleExtractor::valueForAnimationFillMode(animation.fillMode())); 1501 childList->append(ComputedStyleExtractor::valueForAnimationPlayState(animation.playState())); 1502 childList->append(ComputedStyleExtractor::valueForAnimationName(animation.name())); 1503 parentList->append(childList); 1504 } 1505 } 1506 return parentList; 1486 1507 } 1487 1508 … … 3567 3588 return cssValuePool.createIdentifierValue(CSSValueContentBox); 3568 3589 return cssValuePool.createIdentifierValue(CSSValueBorderBox); 3590 case CSSPropertyAnimation: 3591 return animationShorthandValue(style.animations()); 3569 3592 case CSSPropertyAnimationDelay: 3570 3593 return delayValue(style.animations()); … … 4099 4122 /* Unimplemented CSS 3 properties (including CSS3 shorthand properties) */ 4100 4123 case CSSPropertyAll: 4101 case CSSPropertyAnimation:4102 4124 case CSSPropertyTextEmphasis: 4103 4125 break;
Note:
See TracChangeset
for help on using the changeset viewer.