Changeset 287762 in webkit for trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
- Timestamp:
- Jan 7, 2022, 10:48:40 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r287712 r287762 1475 1475 auto list = CSSValueList::createCommaSeparated(); 1476 1476 if (animationList) { 1477 for ( size_t i = 0; i < animationList->size(); ++i)1478 ComputedStyleExtractor::addValueForAnimationPropertyToList(list.get(), property, &animationList->animation(i));1477 for (const auto& animation : *animationList) 1478 ComputedStyleExtractor::addValueForAnimationPropertyToList(list.get(), property, animation.ptr()); 1479 1479 } else 1480 1480 ComputedStyleExtractor::addValueForAnimationPropertyToList(list.get(), property, nullptr); … … 1486 1486 auto parentList = CSSValueList::createCommaSeparated(); 1487 1487 if (animationList) { 1488 for (size_t i = 0; i < animationList->size(); ++i) { 1489 const auto& animation = animationList->animation(i); 1488 for (const auto& animation : *animationList) { 1490 1489 auto childList = CSSValueList::createSpaceSeparated(); 1491 1490 for (auto longhand : shorthandForProperty(property)) 1492 ComputedStyleExtractor::addValueForAnimationPropertyToList(childList.get(), longhand, &animation);1491 ComputedStyleExtractor::addValueForAnimationPropertyToList(childList.get(), longhand, animation.ptr()); 1493 1492 parentList->append(childList); 1494 1493 }
Note:
See TracChangeset
for help on using the changeset viewer.