New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid unnecessary StyleColor copying in animation wrappers #12609
Avoid unnecessary StyleColor copying in animation wrappers #12609
Conversation
EWS run on previous version of this PR (hash 3e7d6aa) |
Cc @weinig who's always interested in color-related things. |
auto result = blendFunc(value(from), value(to), context); | ||
(destination.*m_setter)(result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bit sad that we can't move this. I guess it gets copied down the line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can.
3e7d6aa
to
601bc42
Compare
EWS run on current version of this PR (hash 601bc42) |
https://bugs.webkit.org/show_bug.cgi?id=255278 rdar://107875297 Reviewed by Antoine Quint. There is some unnecessary copying of this not-quite-trivial type. * Source/WebCore/animation/CSSPropertyAnimation.cpp: (WebCore::PropertyWrapperStyleColor::PropertyWrapperStyleColor): (WebCore::PropertyWrapperStyleColor::value const): Remove templating and have separate classes for StyleColor and Color cases. (WebCore::PropertyWrapperColor::PropertyWrapperColor): (WebCore::PropertyWrapperColor::value const): (WebCore::PropertyWrapperVisitedAffectedStyleColor::PropertyWrapperVisitedAffectedStyleColor): (WebCore::PropertyWrapperVisitedAffectedColor::PropertyWrapperVisitedAffectedColor): (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): (WebCore::PropertyWrapperColor::unresolvedValue const): Deleted. Canonical link: https://commits.webkit.org/262822@main
601bc42
to
7baa7bf
Compare
Committed 262822@main (7baa7bf): https://commits.webkit.org/262822@main Reviewed commits have been landed. Closing PR #12609 and removing active labels. |
7baa7bf
601bc42
π§ͺ wpe-wk2π§ͺ ios-wk2-wptπ§ͺ gtk-wk2π§ͺ mac-AS-debug-wk2