RESOLVED FIXED 223124
Fix interpolation of orphans and widows CSS properties
https://bugs.webkit.org/show_bug.cgi?id=223124
Summary Fix interpolation of orphans and widows CSS properties
Antoine Quint
Reported 2021-03-12 08:56:10 PST
Fix interpolation of orphans and widows CSS properties
Attachments
Patch (38.09 KB, patch)
2021-03-12 08:58 PST, Antoine Quint
darin: review+
Antoine Quint
Comment 1 2021-03-12 08:58:30 PST
EWS Watchlist
Comment 2 2021-03-12 08:59:45 PST
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Darin Adler
Comment 3 2021-03-12 15:25:04 PST
Comment on attachment 423054 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=423054&action=review > Source/WebCore/animation/CSSPropertyAnimation.cpp:642 > +class PositivePropertyWrapper : public PropertyWrapper<T> { final > Source/WebCore/animation/CSSPropertyAnimation.cpp:645 > + PositivePropertyWrapper(CSSPropertyID prop, T (RenderStyle::*getter)() const, void (RenderStyle::*setter)(T)) Please use words, not abbreviations. "property" instead of "prop" > Source/WebCore/animation/CSSPropertyAnimation.cpp:650 > + void blend(const CSSPropertyBlendingClient* anim, RenderStyle* dst, const RenderStyle* from, const RenderStyle* to, double progress) const override "animator" or "animation" or "client", instead of "anim" "destination" instead of "dst" final instead of override I suggest making this private.
Antoine Quint
Comment 4 2021-03-13 02:46:24 PST
(In reply to Darin Adler from comment #3) > Comment on attachment 423054 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=423054&action=review > > > Source/WebCore/animation/CSSPropertyAnimation.cpp:642 > > +class PositivePropertyWrapper : public PropertyWrapper<T> { > > final > > > Source/WebCore/animation/CSSPropertyAnimation.cpp:645 > > + PositivePropertyWrapper(CSSPropertyID prop, T (RenderStyle::*getter)() const, void (RenderStyle::*setter)(T)) > > Please use words, not abbreviations. "property" instead of "prop" > > > Source/WebCore/animation/CSSPropertyAnimation.cpp:650 > > + void blend(const CSSPropertyBlendingClient* anim, RenderStyle* dst, const RenderStyle* from, const RenderStyle* to, double progress) const override > > "animator" or "animation" or "client", instead of "anim" > > "destination" instead of "dst" > > final instead of override > > I suggest making this private. This is what happens when you lazily copy/paste code. I'll address those comments and follow up with another patch for bug 223148 which will fix similar issues throughout CSSPropertyAnimation.cpp.
Antoine Quint
Comment 5 2021-03-13 02:57:34 PST
Radar WebKit Bug Importer
Comment 6 2021-03-13 02:58:14 PST
Note You need to log in before you can comment on or make changes to this bug.