RESOLVED FIXED 223148
Improve coding style of CSSPropertyAnimation.cpp
https://bugs.webkit.org/show_bug.cgi?id=223148
Summary Improve coding style of CSSPropertyAnimation.cpp
Antoine Quint
Reported 2021-03-13 02:45:54 PST
Darin provided review feedback in bug 223124 which would really apply to most of CSSPropertyAnimation.cpp. This bug is to ensure that we: - use final instead of override where applicable - put override methods in private sections - don't abbreviate parameters There may be more.
Attachments
Patch (88.81 KB, patch)
2021-03-13 07:43 PST, Antoine Quint
no flags
Patch (88.97 KB, patch)
2021-03-13 13:40 PST, Antoine Quint
darin: review+
ews-feeder: commit-queue-
Antoine Quint
Comment 1 2021-03-13 07:43:25 PST
Antoine Quint
Comment 2 2021-03-13 07:47:43 PST
The patch is failing to apply due to the GitHub mirror being way behind :(
Aakash Jain
Comment 3 2021-03-13 08:09:14 PST
(In reply to Antoine Quint from comment #2) > The patch is failing to apply due to the GitHub mirror being way behind :( That has been fixed now. Your patch is being processed by EWS now.
Antoine Quint
Comment 4 2021-03-13 13:40:17 PST
Darin Adler
Comment 5 2021-03-14 13:24:05 PDT
Comment on attachment 423108 [details] Patch A lot of this code also uses pointers that are required to be non-null rather than references. Like the RenderStyle and the clients.
Sam Weinig
Comment 6 2021-03-14 14:19:13 PDT
Comment on attachment 423108 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=423108&action=review > Source/WebCore/animation/CSSPropertyAnimation.cpp:2249 > // Returns true if we need to start animation timers > -void CSSPropertyAnimation::blendProperties(const CSSPropertyBlendingClient* anim, CSSPropertyID prop, RenderStyle* dst, const RenderStyle* a, const RenderStyle* b, double progress) > +void CSSPropertyAnimation::blendProperties(const CSSPropertyBlendingClient* client, CSSPropertyID property, RenderStyle* destination, const RenderStyle* from, const RenderStyle* to, double progress) Can this comment be removed? The function returns void.
Antoine Quint
Comment 7 2021-03-15 00:38:06 PDT
Radar WebKit Bug Importer
Comment 8 2021-03-15 00:39:15 PDT
Antoine Quint
Comment 9 2021-03-15 00:40:25 PDT
(In reply to Sam Weinig from comment #6) > Comment on attachment 423108 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=423108&action=review > > > Source/WebCore/animation/CSSPropertyAnimation.cpp:2249 > > // Returns true if we need to start animation timers > > -void CSSPropertyAnimation::blendProperties(const CSSPropertyBlendingClient* anim, CSSPropertyID prop, RenderStyle* dst, const RenderStyle* a, const RenderStyle* b, double progress) > > +void CSSPropertyAnimation::blendProperties(const CSSPropertyBlendingClient* client, CSSPropertyID property, RenderStyle* destination, const RenderStyle* from, const RenderStyle* to, double progress) > > Can this comment be removed? The function returns void. Fixed in commit.
Antoine Quint
Comment 10 2021-03-15 00:43:12 PDT
(In reply to Darin Adler from comment #5) > Comment on attachment 423108 [details] > Patch > > A lot of this code also uses pointers that are required to be non-null > rather than references. Like the RenderStyle and the clients. I'll look into that in bug 223173.
Note You need to log in before you can comment on or make changes to this bug.