Bug 238931

Summary: [web-animations] REGRESSION (r287881): loading performance for diply.com regressed
Product: WebKit Reporter: Antoine Quint <graouts>
Component: AnimationsAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, graouts, nham, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Antoine Quint 2022-04-07 06:42:23 PDT
[web-animations] REGRESSION (r287881): loading performance for diply.com regressed
Comment 1 Antoine Quint 2022-04-07 06:43:47 PDT
Created attachment 456918 [details]
Patch
Comment 2 Antoine Quint 2022-04-07 06:43:53 PDT
<rdar://problem/91190007>
Comment 3 Simon Fraser (smfr) 2022-04-07 09:42:16 PDT
Comment on attachment 456918 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=456918&action=review

> Source/WebCore/style/Styleable.cpp:451
> +    auto effectTargetsProperty = [&](KeyframeEffect& effect) {
> +        if (effect.animatedProperties().contains(property))
> +            return true;
> +        if (auto* transition = dynamicDowncast<CSSTransition>(effect.animation()))
> +            return transition->property() == property;
> +        return false;
> +    };

Might be cleaner to pass `property` in and remove default capture.
Comment 4 Antoine Quint 2022-04-07 10:45:45 PDT
(In reply to Simon Fraser (smfr) from comment #3)
> Comment on attachment 456918 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=456918&action=review
> 
> > Source/WebCore/style/Styleable.cpp:451
> > +    auto effectTargetsProperty = [&](KeyframeEffect& effect) {
> > +        if (effect.animatedProperties().contains(property))
> > +            return true;
> > +        if (auto* transition = dynamicDowncast<CSSTransition>(effect.animation()))
> > +            return transition->property() == property;
> > +        return false;
> > +    };
> 
> Might be cleaner to pass `property` in and remove default capture.

Had the same thought as I was writing but was too lazy! Will fix in the commit.
Comment 5 Antoine Quint 2022-04-07 10:54:43 PDT
Created attachment 456943 [details]
Patch for landing
Comment 6 EWS 2022-04-07 13:33:43 PDT
Committed r292561 (249399@main): <https://commits.webkit.org/249399@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 456943 [details].