[Web Animations] Only process CSS properties affected by a given CSS transition
Created attachment 381524 [details] Patch
<rdar://problem/56492517>
Comment on attachment 381524 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=381524&action=review > Source/WebCore/animation/AnimationTimeline.cpp:497 > + auto compileTransitionPropertiesInStyle = [&](const RenderStyle& style) { This is already a long function. I think you should move this and processProperty into real functions.
Created attachment 381793 [details] Patch
Comment on attachment 381793 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=381793&action=review > Source/WebCore/animation/AnimationTimeline.cpp:379 > +void AnimationTimeline::updateCSSTransitionsForElementAndProperty(Element& element, CSSPropertyID property, const RenderStyle& currentStyle, const RenderStyle& afterChangeStyle, AnimationTimeline::PropertyToTransitionMap& runningTransitionsByProperty, PropertyToTransitionMap& completedTransitionsByProperty, const MonotonicTime& generationTime) You can pass MonotonicTime by value (it has sizeof(double)). > Source/WebCore/animation/AnimationTimeline.cpp:535 > } I would return here and remove the else.
Committed r251543: <https://trac.webkit.org/changeset/251543>