Changeset 268873 in webkit
- Timestamp:
- Oct 22, 2020, 11:26:27 AM (6 years ago)
- Location:
- branches/safari-611.1.4-branch
- Files:
-
- 2 deleted
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/mac-wk1/TestExpectations (modified) (1 diff)
-
LayoutTests/webanimations/accelerated-overlapping-transform-animations-expected.html (deleted)
-
LayoutTests/webanimations/accelerated-overlapping-transform-animations.html (deleted)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-611.1.4-branch/LayoutTests/ChangeLog
r268802 r268873 1 2020-10-22 Alan Coon <alancoon@apple.com> 2 3 Revert r268771. rdar://problem/70578639 4 1 5 2020-10-21 Alan Coon <alancoon@apple.com> 2 6 -
branches/safari-611.1.4-branch/LayoutTests/platform/mac-wk1/TestExpectations
r268802 r268873 1194 1194 1195 1195 webkit.org/b/217761 [ Mojave+ Debug ] webgl/2.0.0/conformance/extensions/webgl-compressed-texture-s3tc-srgb.html [ Pass Crash ] 1196 1197 webkit.org/b/217997 webanimations/accelerated-overlapping-transform-animations.html [ Pass Failure ] -
branches/safari-611.1.4-branch/Source/WebCore/ChangeLog
r268802 r268873 1 2020-10-22 Alan Coon <alancoon@apple.com> 2 3 Revert r268771. rdar://problem/70578639 4 1 5 2020-10-21 Alan Coon <alancoon@apple.com> 2 6 -
branches/safari-611.1.4-branch/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
r268802 r268873 1080 1080 LOG_WITH_STREAM(Animations, stream << "GraphicsLayerCA " << this << " id " << primaryLayerID() << " pauseAnimation " << animationName << " (is running " << animationIsRunning(animationName) << ")"); 1081 1081 1082 for (auto& animation : m_animations) { 1083 // There may be several animations with the same name in the case of transform animations 1084 // animating multiple components as individual animations. 1085 if (animation.m_name == animationName && !animation.m_pendingRemoval) { 1086 animation.m_playState = PlayState::PausePending; 1087 animation.m_timeOffset = Seconds { timeOffset }; 1088 1089 noteLayerPropertyChanged(AnimationChanged); 1090 } 1091 } 1082 auto index = m_animations.findMatching([&](LayerPropertyAnimation animation) { 1083 return animation.m_name == animationName && !animation.m_pendingRemoval; 1084 }); 1085 1086 if (index == notFound) 1087 return; 1088 1089 auto& animation = m_animations[index]; 1090 animation.m_playState = PlayState::PausePending; 1091 animation.m_timeOffset = Seconds { timeOffset }; 1092 1093 noteLayerPropertyChanged(AnimationChanged); 1092 1094 } 1093 1095 … … 1096 1098 LOG_WITH_STREAM(Animations, stream << "GraphicsLayerCA " << this << " id " << primaryLayerID() << " removeAnimation " << animationName << " (is running " << animationIsRunning(animationName) << ")"); 1097 1099 1098 for (auto& animation : m_animations) { 1099 // There may be several animations with the same name in the case of transform animations 1100 // animating multiple components as individual animations. 1101 if (animation.m_name == animationName && !animation.m_pendingRemoval) { 1102 animation.m_pendingRemoval = true; 1103 noteLayerPropertyChanged(AnimationChanged | CoverageRectChanged); 1104 } 1105 } 1100 auto index = m_animations.findMatching([&](LayerPropertyAnimation animation) { 1101 return animation.m_name == animationName && !animation.m_pendingRemoval; 1102 }); 1103 1104 if (index == notFound) 1105 return; 1106 1107 m_animations[index].m_pendingRemoval = true; 1108 1109 noteLayerPropertyChanged(AnimationChanged | CoverageRectChanged); 1106 1110 } 1107 1111 … … 2957 2961 break; 2958 2962 case AnimatedPropertyTransform: 2959 // In the case of animations targeting the "transform" CSS property, there may be several2960 // animations created for a single KeyframeEffect, one for each transform component. In that2961 // case the animation index starts at 0 and increases for each component. If we encounter an2962 // index of 0 this means this animation establishes a new group of animation belonging to a2963 // single KeyframeEffect. As such, since the top-most KeyframeEffect replaces the previous2964 // ones, we can remove all the previously-added "transform" animations.2965 if (!animation.m_index)2966 transformAnimations.clear();2967 2963 transformAnimations.append(&animation); 2968 2964 break;
Note:
See TracChangeset
for help on using the changeset viewer.