Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2ec44a1d32e25df03fec224594a2f614f9ea6135
      
https://github.com/WebKit/WebKit/commit/2ec44a1d32e25df03fec224594a2f614f9ea6135
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-04-03 (Fri, 03 Apr 2026)

  Changed paths:
    M Source/WebCore/Modules/webaudio/AudioBufferSourceNode.cpp
    M Source/WebCore/Modules/webaudio/AudioParamTimeline.cpp

  Log Message:
  -----------
  Use std::isfinite instead of manual !isnan && !isinf checks in WebAudio
https://bugs.webkit.org/show_bug.cgi?id=311399
rdar://173992658

Reviewed by Chris Dumez.

Replace `!std::isnan(x) && !std::isinf(x)` with the equivalent
`std::isfinite(x)` [1] in WebAudio code.

[1] https://en.cppreference.com/w/cpp/numeric/math/isfinite

* Source/WebCore/Modules/webaudio/AudioBufferSourceNode.cpp:
(WebCore::AudioBufferSourceNode::totalPitchRate):
* Source/WebCore/Modules/webaudio/AudioParamTimeline.cpp:
(WebCore::isValidNumber):

Canonical link: https://commits.webkit.org/310517@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to