Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 91bbe4c98b2aff226120fb71c98b32b62130f157
https://github.com/WebKit/WebKit/commit/91bbe4c98b2aff226120fb71c98b32b62130f157
Author: Chris Dumez <[email protected]>
Date: 2025-05-01 (Thu, 01 May 2025)
Changed paths:
M Source/JavaScriptCore/b3/testb3.h
M Source/JavaScriptCore/b3/testb3_3.cpp
M Source/JavaScriptCore/b3/testb3_6.cpp
M Source/JavaScriptCore/runtime/MathObject.cpp
M Source/WTF/wtf/MathExtras.h
M Source/WebCore/Modules/webaudio/PannerNode.cpp
M Source/WebCore/Modules/webaudio/PeriodicWave.cpp
M Source/WebCore/Modules/webaudio/RealtimeAnalyser.cpp
M Source/WebCore/Modules/webxr/WebXRSession.h
M Source/WebCore/css/calc/CSSCalcTree+Parser.cpp
M Source/WebCore/dom/PointerEvent.cpp
M Source/WebCore/html/canvas/CanvasPath.cpp
M Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm
M Source/WebCore/platform/DictationCaretAnimator.cpp
M Source/WebCore/platform/audio/Biquad.cpp
M Source/WebCore/platform/audio/DownSampler.cpp
M Source/WebCore/platform/audio/DynamicsCompressorKernel.cpp
M Source/WebCore/platform/audio/FFTFrame.cpp
M Source/WebCore/platform/audio/IIRFilter.cpp
M Source/WebCore/platform/audio/SincResampler.cpp
M Source/WebCore/platform/audio/UpSampler.cpp
M Source/WebCore/platform/calc/CalculationExecutor.h
M Source/WebCore/platform/graphics/FloatRoundedRect.cpp
M Source/WebCore/platform/graphics/GeometryUtilities.cpp
M Source/WebCore/platform/graphics/PathSegmentData.cpp
M Source/WebCore/platform/graphics/PathUtilities.cpp
M Source/WebCore/platform/graphics/ShadowBlur.cpp
M
Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm
M
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm
M Source/WebCore/platform/graphics/cairo/CairoOperations.cpp
M Source/WebCore/platform/graphics/cairo/GradientCairo.cpp
M Source/WebCore/platform/graphics/cairo/PathCairo.cpp
M Source/WebCore/platform/graphics/cg/GradientCG.cpp
M Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.cpp
M Source/WebCore/platform/graphics/filters/FEGaussianBlur.cpp
M Source/WebCore/platform/graphics/skia/PathSkia.cpp
M Source/WebCore/platform/graphics/transforms/AffineTransform.cpp
M Source/WebCore/platform/ios/WebCoreMotionManager.mm
M Source/WebCore/platform/mediarecorder/MediaRecorderPrivateEncoder.cpp
M
Source/WebCore/platform/mediastream/gstreamer/MockRealtimeAudioSourceGStreamer.cpp
M Source/WebCore/platform/mediastream/mac/MockAudioSharedUnit.mm
M Source/WebCore/platform/mock/MockRealtimeVideoSource.cpp
M Source/WebCore/rendering/ios/RenderThemeIOS.mm
M Source/WebCore/rendering/mathml/MathOperator.cpp
M Source/WebCore/rendering/mathml/RenderMathMLMenclose.cpp
M Source/WebCore/rendering/svg/SVGLayerTransformComputation.h
M Source/WebCore/rendering/svg/SVGRenderSupport.cpp
M Source/WebCore/rendering/svg/SVGRenderingContext.cpp
M Source/WebCore/style/values/shapes/StyleCircleFunction.cpp
M Source/WebCore/svg/SVGLengthContext.cpp
M Source/WebCore/svg/SVGPathParser.cpp
M Source/WebCore/svg/graphics/filters/SVGFilter.cpp
M Source/WebCore/testing/cocoa/WebViewVisualIdentificationOverlay.mm
M Source/WebKit/UIProcess/API/Cocoa/_WKTouchEventGenerator.mm
M Source/WebKit/UIProcess/ios/WKKeyboardScrollingAnimator.mm
M Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm
M Source/WebKitLegacy/ios/WebView/WebPDFViewIOS.mm
M Source/WebKitLegacy/ios/WebView/WebPDFViewPlaceholder.mm
M Source/WebKitLegacy/mac/WebView/WebWindowAnimation.mm
M Tools/TestWebKitAPI/Tests/WTF/AtomString.cpp
M Tools/TestWebKitAPI/Tests/WTF/MediaTime.cpp
M Tools/TestWebKitAPI/Tests/WTF/WTFString.cpp
M Tools/TestWebKitAPI/Tests/WebCore/DisplayListRecorderTests.cpp
M Tools/TestWebKitAPI/Tests/WebCore/cg/BifurcatedGraphicsContextTestsCG.cpp
M Tools/WebKitTestRunner/ios/HIDEventGenerator.mm
Log Message:
-----------
Leverage std::numbers more for some of our constants
https://bugs.webkit.org/show_bug.cgi?id=292372
Reviewed by Sam Weinig.
This avoids duplicating them in wtf/MathExtras.h.
* Source/JavaScriptCore/b3/testb3.h:
(populateWithInterestingValues):
* Source/JavaScriptCore/b3/testb3_3.cpp:
(testDoubleToFloatThroughPhi):
(addArgTests):
* Source/JavaScriptCore/b3/testb3_6.cpp:
(testSelectDoubleCompareFloat):
* Source/JavaScriptCore/runtime/MathObject.cpp:
(JSC::MathObject::finishCreation):
* Source/WTF/wtf/MathExtras.h:
* Source/WebCore/Modules/webaudio/PannerNode.cpp:
(WebCore::PannerNode::calculateAzimuthElevation):
* Source/WebCore/Modules/webaudio/PeriodicWave.cpp:
(WebCore::PeriodicWave::generateBasicWaveform):
* Source/WebCore/Modules/webaudio/RealtimeAnalyser.cpp:
* Source/WebCore/Modules/webxr/WebXRSession.h:
* Source/WebCore/css/calc/CSSCalcTree+Parser.cpp:
(WebCore::CSSCalc::lookupConstantNumber):
* Source/WebCore/dom/PointerEvent.cpp:
(WebCore::PointerEvent::angleFromTilt):
* Source/WebCore/html/canvas/CanvasPath.cpp:
(WebCore::normalizeAngles):
* Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:
* Source/WebCore/platform/DictationCaretAnimator.cpp:
(WebCore::keyframe):
* Source/WebCore/platform/audio/Biquad.cpp:
(WebCore::Biquad::setLowpassParams):
(WebCore::Biquad::setHighpassParams):
(WebCore::Biquad::setLowShelfParams):
(WebCore::Biquad::setHighShelfParams):
(WebCore::Biquad::setPeakingParams):
(WebCore::Biquad::setAllpassParams):
(WebCore::Biquad::setNotchParams):
(WebCore::Biquad::setBandpassParams):
(WebCore::Biquad::getFrequencyResponse):
* Source/WebCore/platform/audio/DownSampler.cpp:
(WebCore::DownSampler::initializeKernel):
* Source/WebCore/platform/audio/DynamicsCompressorKernel.cpp:
(WebCore::DynamicsCompressorKernel::process):
* Source/WebCore/platform/audio/FFTFrame.cpp:
(WebCore::FFTFrame::interpolateFrequencyComponents):
(WebCore::FFTFrame::extractAverageGroupDelay):
(WebCore::FFTFrame::addConstantGroupDelay):
* Source/WebCore/platform/audio/IIRFilter.cpp:
(WebCore::IIRFilter::getFrequencyResponse):
* Source/WebCore/platform/audio/SincResampler.cpp:
(WebCore::SincResampler::initializeKernel):
* Source/WebCore/platform/audio/UpSampler.cpp:
(WebCore::UpSampler::initializeKernel):
* Source/WebCore/platform/calc/CalculationExecutor.h:
(WebCore::Calculation::OperatorExecutor<Tan>::operator()):
* Source/WebCore/platform/graphics/FloatRoundedRect.cpp:
(WebCore::approximateAsRegion):
* Source/WebCore/platform/graphics/GeometryUtilities.cpp:
(WebCore::rotatedBoundingRectWithMinimumAngleOfRotation):
* Source/WebCore/platform/graphics/PathSegmentData.cpp:
(WebCore::angleOfLine):
(WebCore::calculateArcToEndPoint):
(WebCore::PathArc::extendBoundingRect const):
* Source/WebCore/platform/graphics/PathUtilities.cpp:
(WebCore::walkGraphAndExtractPolygon):
* Source/WebCore/platform/graphics/ShadowBlur.cpp:
(WebCore::calculateLobes):
*
Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm:
(WebCore::transformationMatrixForVideoFrame):
*
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm:
(WebCore::videoTransformationMatrix):
* Source/WebCore/platform/graphics/cairo/CairoOperations.cpp:
(WebCore::Cairo::drawEllipse):
* Source/WebCore/platform/graphics/cairo/GradientCairo.cpp:
(WebCore::addConicSector):
* Source/WebCore/platform/graphics/cairo/PathCairo.cpp:
(WebCore::PathCairo::add):
* Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.cpp:
(WebCore::DisplayList::Recorder::updateStateForRotate):
* Source/WebCore/platform/graphics/filters/FEGaussianBlur.cpp:
(WebCore::gaussianKernelFactor):
* Source/WebCore/platform/graphics/skia/PathSkia.cpp:
(WebCore::PathSkia::addEllipse):
* Source/WebCore/platform/graphics/transforms/AffineTransform.cpp:
(WebCore::AffineTransform::blend):
* Source/WebCore/platform/ios/WebCoreMotionManager.mm:
(-[WebCoreMotionManager sendMotionData:withHeading:]):
* Source/WebCore/platform/mediarecorder/MediaRecorderPrivateEncoder.cpp:
(WebCore::MediaRecorderPrivateEncoder::appendVideoFrame):
*
Source/WebCore/platform/mediastream/gstreamer/MockRealtimeAudioSourceGStreamer.cpp:
* Source/WebCore/platform/mediastream/mac/MockAudioSharedUnit.mm:
* Source/WebCore/platform/mock/MockRealtimeVideoSource.cpp:
(WebCore::MockRealtimeVideoSource::drawAnimation):
* Source/WebCore/rendering/ios/RenderThemeIOS.mm:
(WebCore::paintAttachmentProgress):
* Source/WebCore/rendering/mathml/MathOperator.cpp:
(WebCore::MathOperator::calculateDisplayStyleLargeOperator):
* Source/WebCore/rendering/mathml/RenderMathMLMenclose.cpp:
(WebCore::RenderMathMLMenclose::spaceAroundContent const):
(WebCore::RenderMathMLMenclose::paint):
* Source/WebCore/rendering/svg/SVGLayerTransformComputation.h:
(WebCore::SVGLayerTransformComputation::calculateScreenFontSizeScalingFactor
const):
* Source/WebCore/rendering/svg/SVGRenderSupport.cpp:
(WebCore::SVGRenderSupport::calculateApproximateStrokeBoundingBox):
* Source/WebCore/rendering/svg/SVGRenderingContext.cpp:
(WebCore::SVGRenderingContext::calculateScreenFontSizeScalingFactor):
* Source/WebCore/style/values/shapes/StyleCircleFunction.cpp:
(WebCore::Style::resolveRadius):
* Source/WebCore/svg/SVGLengthContext.cpp:
(WebCore::dimensionForLengthMode):
* Source/WebCore/svg/SVGPathParser.cpp:
(WebCore::SVGPathParser::decomposeArcToCubic):
* Source/WebCore/svg/graphics/filters/SVGFilter.cpp:
(WebCore::SVGFilter::resolvedPoint3D const):
* Source/WebKit/UIProcess/API/Cocoa/_WKTouchEventGenerator.mm:
(simpleCurveInterpolation):
* Source/WebKit/UIProcess/ios/WKKeyboardScrollingAnimator.mm:
(-[WKKeyboardScrollingAnimator beginWithEvent:]):
* Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm:
(-[WKSelectPickerGroupHeaderView setCollapsed:animated:]):
* Source/WebKitLegacy/ios/WebView/WebPDFViewIOS.mm:
(-[WebPDFView _computePageRects]):
* Source/WebKitLegacy/ios/WebView/WebPDFViewPlaceholder.mm:
(-[WebPDFViewPlaceholder _getPDFPageBounds:]):
* Source/WebKitLegacy/mac/WebView/WebWindowAnimation.mm:
(-[WebWindowScaleAnimation currentValue]):
* Tools/TestWebKitAPI/Tests/WTF/AtomString.cpp:
(TestWebKitAPI::TEST(WTF, AtomStringNumberDouble)):
* Tools/TestWebKitAPI/Tests/WTF/MediaTime.cpp:
(TestWebKitAPI::TEST(WTF, MediaTime)):
* Tools/TestWebKitAPI/Tests/WTF/WTFString.cpp:
(TestWebKitAPI::TEST(WTF, StringNumberFixedPrecision)):
(TestWebKitAPI::TEST(WTF, StringNumberFixedWidth)):
(TestWebKitAPI::TEST(WTF, StringNumber)):
* Tools/TestWebKitAPI/Tests/WebCore/DisplayListRecorderTests.cpp:
* Tools/TestWebKitAPI/Tests/WebCore/cg/BifurcatedGraphicsContextTestsCG.cpp:
(TestWebKitAPI::TEST(BifurcatedGraphicsContextTests, TransformedClip)):
* Tools/WebKitTestRunner/ios/HIDEventGenerator.mm:
(simpleCurveInterpolation):
(-[HIDEventGenerator stylusDownAtPoint:azimuthAngle:altitudeAngle:pressure:]):
Canonical link: https://commits.webkit.org/294398@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes