RESOLVED FIXED 203238
[Web Animations] Only process CSS properties affected by a given CSS transition
https://bugs.webkit.org/show_bug.cgi?id=203238
Summary [Web Animations] Only process CSS properties affected by a given CSS transition
Antoine Quint
Reported 2019-10-22 01:17:18 PDT
[Web Animations] Only process CSS properties affected by a given CSS transition
Attachments
Patch (4.84 KB, patch)
2019-10-22 01:21 PDT, Antoine Quint
no flags
Patch (27.28 KB, patch)
2019-10-24 02:58 PDT, Antoine Quint
simon.fraser: review+
Antoine Quint
Comment 1 2019-10-22 01:21:05 PDT
Radar WebKit Bug Importer
Comment 2 2019-10-22 01:21:58 PDT
Simon Fraser (smfr)
Comment 3 2019-10-22 08:09:32 PDT
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.
Antoine Quint
Comment 4 2019-10-24 02:58:56 PDT
Simon Fraser (smfr)
Comment 5 2019-10-24 08:49:54 PDT
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.
Antoine Quint
Comment 6 2019-10-24 09:35:16 PDT
Note You need to log in before you can comment on or make changes to this bug.