WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 222816
222514
Length blending code should not attempt to blend for progress 0 or 1
https://bugs.webkit.org/show_bug.cgi?id=222514
Summary
Length blending code should not attempt to blend for progress 0 or 1
Antoine Quint
Reported
2021-02-27 09:31:09 PST
Length blending code should not attempt to blend for progress 0 or 1
Attachments
Patch
(45.65 KB, patch)
2021-02-27 09:35 PST
,
Antoine Quint
koivisto
: review+
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Antoine Quint
Comment 1
2021-02-27 09:35:51 PST
Created
attachment 421747
[details]
Patch
Antti Koivisto
Comment 2
2021-02-27 09:56:14 PST
Comment on
attachment 421747
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=421747&action=review
> Source/WebCore/platform/Length.cpp:315 > + if (!progress) > + return from; > + > + if (progress == 1) > + return to;
Could this be moved to caller/higher level? This is true for all blend operations right?
Antoine Quint
Comment 3
2021-02-27 10:15:04 PST
(In reply to Antti Koivisto from
comment #2
)
> Comment on
attachment 421747
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=421747&action=review
> > > Source/WebCore/platform/Length.cpp:315 > > + if (!progress) > > + return from; > > + > > + if (progress == 1) > > + return to; > > Could this be moved to caller/higher level? This is true for all blend > operations right?
We could move it up to the static Length blendFunc() in CSSPropertyAnimation, but actually doing it at a lower-level means that any caller of blend() will get it for free. I wish we could generalize this however in the animation wrappers, but it's not obvious to me how this could be done.
Antoine Quint
Comment 4
2021-02-27 10:42:03 PST
There are fair few progressions more than those I'd recorded but also a few regressions. This is probably an issue similar to that of border-image-slice and its initial value. Will have to look into it and file another patch.
Antoine Quint
Comment 5
2021-03-06 06:33:15 PST
This will be taken care of as part of
bug 222816
. *** This bug has been marked as a duplicate of
bug 222816
***
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