WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 224433
223173
Use references instead of pointers as animation wrapper function arguments in CSSPropertyAnimation.cpp
https://bugs.webkit.org/show_bug.cgi?id=223173
Summary
Use references instead of pointers as animation wrapper function arguments in...
Antoine Quint
Reported
2021-03-15 00:42:53 PDT
This is a followup to
bug 223148
to address some additional review feedback that Darin Adler provided.
Attachments
Add attachment
proposed patch, testcase, etc.
Antoine Quint
Comment 1
2021-03-15 03:09:41 PDT
Actually, looking at the code again: double aspectRatioDst = WebCore::blend(log(a->logicalAspectRatio()), log(b->logicalAspectRatio()), progress); dst->setAspectRatio(exp(aspectRatioDst), 1); dst->setAspectRatioType(progress < 0.5 ? a->aspectRatioType() : b->aspectRatioType()); Since in the discrete case the progress is either 0 or 1, I think the blend function could be just those three lines. While it's a bit extra work to actually blend the values when we know it'll be one or the other, it simplifies the logic. That assumes that canInterpolate() will correctly identify all cases where the animation should be discrete, which is its contract.
Antoine Quint
Comment 2
2021-03-15 03:12:46 PDT
Don't mind this last comment, it was mistakenly typed in this bug rather than
bug 220848
.
Alexey Proskuryakov
Comment 3
2021-03-15 09:12:29 PDT
***
Bug 223172
has been marked as a duplicate of this bug. ***
Radar WebKit Bug Importer
Comment 4
2021-03-22 04:35:57 PDT
<
rdar://problem/75685299
>
Antoine Quint
Comment 5
2021-04-12 13:12:23 PDT
Will address this in a larger refactor in
bug 224433
. *** This bug has been marked as a duplicate of
bug 224433
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug