[webkit-changes] [WebKit/WebKit] ec3619: Modernize PlatformCAAnimationWin.cpp similar to Pl...
EWS
noreply at github.com
Tue Sep 13 05:26:43 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ec3619c5a844cf9526ae1a94a8bf64670c002194
https://github.com/WebKit/WebKit/commit/ec3619c5a844cf9526ae1a94a8bf64670c002194
Author: David Kilzer <ddkilzer at apple.com>
Date: 2022-09-13 (Tue, 13 Sep 2022)
Changed paths:
M Source/WebCore/platform/graphics/ca/win/PlatformCAAnimationWin.cpp
Log Message:
-----------
Modernize PlatformCAAnimationWin.cpp similar to PlatformCAAnimationCocoa.mm
https://bugs.webkit.org/show_bug.cgi?id=245088
<rdar://99830432>
Reviewed by Brent Fulgham.
* Source/WebCore/platform/graphics/ca/win/PlatformCAAnimationWin.cpp:
(toCACFTimingFunction):
- Update to match toCAMediaTimingFunction() by using a
references instead raw pointers, using checked casts, and
adding an assert before the final return statement.
(PlatformCAAnimationWin::setTimingFunction):
- Remove unneeded UNUSED_PARAM().
- Add ASSERT(value) to check for nullptr. This matches
PlatformCAAnimationCocoa::setTimingFunction().
- Update toCACFTimingFunction() to pass a const reference.
(PlatformCAAnimationWin::setTimingFunctions):
- Remove unneeded UNUSED_PARAM().
- Switch to using a modern for loop.
- Update toCACFTimingFunction() to pass a const reference.
Canonical link: https://commits.webkit.org/254430@main
More information about the webkit-changes
mailing list