Title: [289422] branches/safari-613-branch/Source/WebCore/animation/KeyframeEffect.cpp
- Revision
- 289422
- Author
- [email protected]
- Date
- 2022-02-08 13:31:16 -0800 (Tue, 08 Feb 2022)
Log Message
Apply patch. rdar://problem/82516118
Modified Paths
Diff
Modified: branches/safari-613-branch/Source/WebCore/animation/KeyframeEffect.cpp (289421 => 289422)
--- branches/safari-613-branch/Source/WebCore/animation/KeyframeEffect.cpp 2022-02-08 21:20:35 UTC (rev 289421)
+++ branches/safari-613-branch/Source/WebCore/animation/KeyframeEffect.cpp 2022-02-08 21:31:16 UTC (rev 289422)
@@ -424,10 +424,10 @@
// property in cssPropertiesAndValues, so just set this on the previous keyframe.
// In case an invalid or null value was originally provided, then the property
// was not set and the property count is 0, in which case there is nothing to merge.
- if (keyframe.style->propertyCount()) {
- auto property = keyframe.style->propertyAt(0);
- previousKeyframe.style->setProperty(property.id(), property.value());
- previousKeyframe.unparsedStyle.set(property.id(), keyframe.unparsedStyle.get(property.id()));
+ if (keyframe.unparsedStyle.size()) {
+ previousKeyframe.style->mergeAndOverrideOnConflict(keyframe.style);
+ for (auto& [property, value] : keyframe.unparsedStyle)
+ previousKeyframe.unparsedStyle.set(property, value);
}
// Since we've processed this keyframe, we can remove it and keep i the same
// so that we process the next keyframe in the next loop iteration.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes