Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a03165eb7c18a4621681c6580155cb0f1d8009ef
https://github.com/WebKit/WebKit/commit/a03165eb7c18a4621681c6580155cb0f1d8009ef
Author: Ahmad Saleem <[email protected]>
Date: 2026-04-07 (Tue, 07 Apr 2026)
Changed paths:
M Source/WebCore/platform/ScrollAnimationSmooth.cpp
M
Source/WebCore/platform/graphics/filters/software/FETurbulenceSoftwareApplier.cpp
M
Source/WebCore/platform/graphics/filters/software/FETurbulenceSoftwareApplier.h
Log Message:
-----------
Use std::lerp instead of custom linearInterpolation helpers in WebCore
https://bugs.webkit.org/show_bug.cgi?id=311426
rdar://174024669
Reviewed by Simon Fraser.
Replace two custom linearInterpolation(t, a, b) helper functions with
C++20 std::lerp(a, b, t), removing the now-unused helpers.
* Source/WebCore/platform/ScrollAnimationSmooth.cpp:
(WebCore::ScrollAnimationSmooth::animateScroll): Make `progress` float as well.
(WebCore::linearInterpolation): Deleted.
*
Source/WebCore/platform/graphics/filters/software/FETurbulenceSoftwareApplier.cpp:
(WebCore::FETurbulenceSoftwareApplier::noise2D):
*
Source/WebCore/platform/graphics/filters/software/FETurbulenceSoftwareApplier.h:
Canonical link: https://commits.webkit.org/310709@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications