Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 93ac11889fc3d702c48957a38a4bc16c00864a8e
https://github.com/WebKit/WebKit/commit/93ac11889fc3d702c48957a38a4bc16c00864a8e
Author: Chris Dumez <[email protected]>
Date: 2025-12-23 (Tue, 23 Dec 2025)
Changed paths:
M
Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_header.py
M
Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-async-attribute.json-result
M
Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result
M
Source/JavaScriptCore/inspector/scripts/tests/expected/domain-exposed-as-other-name.json-result
M
Source/JavaScriptCore/inspector/scripts/tests/expected/enum-values.json-result
M
Source/JavaScriptCore/inspector/scripts/tests/expected/shadowed-optional-type-setters.json-result
M
Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-array-type.json-result
M
Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-enum-type.json-result
M
Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-object-type.json-result
M
Source/JavaScriptCore/inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result
M Source/WTF/wtf/DateMath.cpp
M Source/WTF/wtf/SortedArrayMap.h
M Source/WTF/wtf/URL.cpp
M Source/WTF/wtf/URLHelpers.cpp
M Source/WTF/wtf/cocoa/NSURLExtras.mm
M Source/WTF/wtf/dragonbox/dragonbox_to_chars.cpp
M Source/WTF/wtf/fast_float/bigint.h
M Source/WTF/wtf/fast_float/digit_comparison.h
M Source/WTF/wtf/fast_float/fast_table.h
M Source/WTF/wtf/fast_float/float_common.h
M Source/WTF/wtf/fast_float/simple_decimal_conversion.h
M Source/WTF/wtf/text/WYHash.h
M Source/WebCore/Modules/WebGPU/GPUAdapter.cpp
M Source/WebCore/Modules/applicationmanifest/ApplicationManifestParser.cpp
M Source/WebCore/Modules/mediacapabilities/MediaCapabilities.cpp
M Source/WebCore/Modules/mediasession/MediaSession.cpp
M Source/WebCore/Modules/mediastream/SFrameUtils.cpp
M Source/WebCore/PAL/pal/text/TextEncodingRegistry.cpp
M Source/WebCore/accessibility/atspi/AccessibilityAtspi.cpp
M Source/WebCore/accessibility/cocoa/AXCoreObjectCocoa.mm
M Source/WebCore/crypto/cocoa/CommonCryptoDERUtilities.h
M Source/WebCore/crypto/cocoa/CryptoKeyECMac.cpp
M Source/WebCore/crypto/cocoa/CryptoKeyRSAMac.cpp
M Source/WebCore/crypto/cocoa/SerializedCryptoKeyWrapMac.mm
M Source/WebCore/css/calc/CSSCalcTree+Parser.cpp
M Source/WebCore/css/parser/CSSAtRuleID.cpp
M Source/WebCore/css/parser/CSSCustomPropertySyntax.cpp
M
Source/WebCore/css/parser/CSSPropertyParserConsumer+ColorInterpolationMethod.cpp
M Source/WebCore/css/parser/CSSPropertyParserConsumer+Image.cpp
M Source/WebCore/css/parser/CSSPropertyParserConsumer+Motion.cpp
M Source/WebCore/css/parser/CSSPropertyParserConsumer+Shapes.cpp
M Source/WebCore/dom/DatasetDOMStringMap.cpp
M Source/WebCore/dom/Document.cpp
M Source/WebCore/dom/SecurityContext.cpp
M Source/WebCore/dom/TextEncoderStreamEncoder.cpp
M Source/WebCore/dom/ViewTransition.cpp
M Source/WebCore/editing/EditingStyle.cpp
M Source/WebCore/editing/EditorCommand.cpp
M Source/WebCore/editing/TextManipulationController.cpp
M Source/WebCore/html/Autofill.cpp
M Source/WebCore/html/EnterKeyHint.cpp
M Source/WebCore/html/HTMLMediaElement.cpp
M Source/WebCore/html/HTMLVideoElement.cpp
M Source/WebCore/html/InputType.cpp
M Source/WebCore/html/LinkRelAttribute.cpp
M Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
M Source/WebCore/html/parser/HTMLPreloadScanner.cpp
M Source/WebCore/html/parser/HTMLTreeBuilder.cpp
M Source/WebCore/loader/MediaResourceLoader.cpp
M Source/WebCore/loader/icon/IconLoader.cpp
M Source/WebCore/loader/soup/ResourceLoaderSoup.cpp
M Source/WebCore/mathml/MathMLOperatorDictionary.cpp
M Source/WebCore/mathml/MathMLPresentationElement.cpp
M Source/WebCore/page/DebugPageOverlays.cpp
M Source/WebCore/page/PerformanceUserTiming.cpp
M Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm
M Source/WebCore/platform/KeyboardScrollingAnimator.cpp
M Source/WebCore/platform/LegacySchemeRegistry.cpp
M Source/WebCore/platform/MIMETypeRegistry.cpp
M Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp
M Source/WebCore/platform/audio/glib/MediaSessionGLib.cpp
M Source/WebCore/platform/cocoa/MIMETypeRegistryCocoa.mm
M Source/WebCore/platform/cocoa/RemoteCommandListenerCocoa.mm
M Source/WebCore/platform/graphics/FontCascade.cpp
M Source/WebCore/platform/graphics/HEVCUtilities.cpp
M Source/WebCore/platform/graphics/MIMESniffer.cpp
M Source/WebCore/platform/graphics/VP9Utilities.cpp
M Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp
M Source/WebCore/platform/graphics/avfoundation/objc/AVAssetMIMETypeCache.mm
M Source/WebCore/platform/graphics/filters/FilterFunction.cpp
M Source/WebCore/platform/mock/MockRealtimeVideoSource.cpp
M Source/WebCore/platform/network/CacheValidation.cpp
M Source/WebCore/platform/network/HTTPParsers.cpp
M Source/WebCore/platform/network/ResourceRequestBase.cpp
M Source/WebCore/platform/network/mac/UTIUtilities.mm
M Source/WebCore/platform/network/mac/WebCoreURLResponse.mm
M Source/WebCore/platform/sql/SQLiteDatabase.cpp
M Source/WebCore/platform/text/LocaleICU.cpp
M Source/WebCore/platform/text/LocaleToScriptMapping.cpp
M Source/WebCore/rendering/RenderCombineText.cpp
M Source/WebCore/rendering/RenderLayerBacking.cpp
M Source/WebCore/rendering/RenderText.cpp
M Source/WebCore/rendering/mathml/MathVariant.cpp
M Source/WebCore/svg/SVGComponentTransferFunctionElement.h
M Source/WebCore/svg/SVGFECompositeElement.h
M Source/WebCore/testing/Internals.cpp
M Source/WebCore/testing/LegacyMockCDM.cpp
M Source/WebCore/xml/XPathFunctions.cpp
M Source/WebCore/xml/XPathParser.cpp
M Source/WebDriver/WebDriverService.cpp
M Source/WebGPU/WGSL/Lexer.cpp
M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
M Source/WebGPU/WGSL/Types.h
M Source/WebGPU/WGSL/WGSLEnums.cpp
M Source/WebKit/UIProcess/API/ios/WKWebViewTestingIOS.mm
M Source/WebKit/WebProcess/WebPage/mac/WebPageMac.mm
M Tools/TestWebKitAPI/Tests/WTF/SortedArrayMap.cpp
Log Message:
-----------
Reduce use of C arrays in the codebase
https://bugs.webkit.org/show_bug.cgi?id=304636
Reviewed by David Kilzer.
Reduce use of C arrays in the codebase, leveraging std::array instead.
*
Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_type_conversions_header.py:
(ObjCProtocolTypeConversionsHeaderGenerator._generate_enum_from_protocol_string):
*
Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-async-attribute.json-result:
*
Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result:
*
Source/JavaScriptCore/inspector/scripts/tests/expected/domain-exposed-as-other-name.json-result:
*
Source/JavaScriptCore/inspector/scripts/tests/expected/enum-values.json-result:
*
Source/JavaScriptCore/inspector/scripts/tests/expected/shadowed-optional-type-setters.json-result:
*
Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-array-type.json-result:
*
Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-enum-type.json-result:
*
Source/JavaScriptCore/inspector/scripts/tests/expected/type-declaration-object-type.json-result:
*
Source/JavaScriptCore/inspector/scripts/tests/expected/type-requiring-runtime-casts.json-result:
* Source/WTF/wtf/DateMath.cpp:
(WTF::std::to_array<KnownZone>):
* Source/WTF/wtf/SortedArrayMap.h:
(WTF::N>::SortedArrayMap):
(WTF::N>::tryGet const const):
(WTF::N>::get const):
(WTF::N>::contains const):
(WTF::N>::SortedArraySet):
(WTF::SortedArrayMap<ArrayType>::SortedArrayMap): Deleted.
(WTF::SortedArrayMap<ArrayType>::tryGet const const): Deleted.
(WTF::SortedArrayMap<ArrayType>::get const): Deleted.
(WTF::SortedArrayMap<ArrayType>::contains const): Deleted.
(WTF::SortedArraySet<ArrayType>::SortedArraySet): Deleted.
(WTF::SortedArraySet<ArrayType>::contains const):
* Source/WTF/wtf/URL.cpp:
(WTF::portAllowed):
* Source/WTF/wtf/URLHelpers.cpp:
(WTF::URLHelpers::initializeDefaultIDNAllowedScriptList):
* Source/WTF/wtf/cocoa/NSURLExtras.mm:
(WTF::dataForURLComponentType):
* Source/WTF/wtf/dragonbox/dragonbox_to_chars.cpp:
* Source/WTF/wtf/fast_float/bigint.h:
* Source/WTF/wtf/fast_float/digit_comparison.h:
(fast_float::std::to_array<uint64_t>):
* Source/WTF/wtf/fast_float/fast_table.h:
* Source/WTF/wtf/fast_float/float_common.h:
(fast_float::span::span):
(fast_float::space_lut::std::to_array<bool>):
* Source/WTF/wtf/fast_float/simple_decimal_conversion.h:
(fast_float::detail::number_of_digits_decimal_left_shift):
(fast_float::compute_float):
* Source/WTF/wtf/text/WYHash.h:
* Source/WebCore/Modules/WebGPU/GPUAdapter.cpp:
(WebCore::convertFeatureNameToEnum):
* Source/WebCore/Modules/applicationmanifest/ApplicationManifestParser.cpp:
(WebCore::ApplicationManifestParser::parseDir):
(WebCore::ApplicationManifestParser::parseDisplay):
(WebCore::ApplicationManifestParser::parseOrientation):
* Source/WebCore/Modules/mediacapabilities/MediaCapabilities.cpp:
(WebCore::isValidMediaMIMEType):
* Source/WebCore/Modules/mediasession/MediaSession.cpp:
(WebCore::platformCommandForMediaSessionAction):
* Source/WebCore/Modules/mediastream/SFrameUtils.cpp:
(WebCore::computeH264PrefixBuffer):
* Source/WebCore/PAL/pal/text/TextEncodingRegistry.cpp:
* Source/WebCore/accessibility/cocoa/AXCoreObjectCocoa.mm:
(WebCore::Accessibility::createPlatformRoleMap):
* Source/WebCore/crypto/cocoa/CommonCryptoDERUtilities.h:
* Source/WebCore/crypto/cocoa/CryptoKeyECMac.cpp:
* Source/WebCore/crypto/cocoa/CryptoKeyRSAMac.cpp:
(WebCore::std::to_array<uint8_t>):
* Source/WebCore/crypto/cocoa/SerializedCryptoKeyWrapMac.mm:
(WebCore::wrapSerializedCryptoKey):
* Source/WebCore/css/calc/CSSCalcTree+Parser.cpp:
(WebCore::CSSCalc::lookupConstantNumber):
* Source/WebCore/css/parser/CSSAtRuleID.cpp:
(WebCore::cssAtRuleID):
* Source/WebCore/css/parser/CSSCustomPropertySyntax.cpp:
(WebCore::CSSCustomPropertySyntax::typeForTypeName):
*
Source/WebCore/css/parser/CSSPropertyParserConsumer+ColorInterpolationMethod.cpp:
(WebCore::CSSPropertyParserHelpers::consumeHueInterpolationMethod):
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Image.cpp:
(WebCore::CSSPropertyParserHelpers::consumePrefixedLinearGradient):
(WebCore::CSSPropertyParserHelpers::consumePrefixedRadialGradient):
(WebCore::CSSPropertyParserHelpers::consumeLinearGradient):
(WebCore::CSSPropertyParserHelpers::consumeRadialGradient):
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Motion.cpp:
(WebCore::CSSPropertyParserHelpers::consumeRayFunction):
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Shapes.cpp:
(WebCore::CSSPropertyParserHelpers::peekFillRule):
(WebCore::CSSPropertyParserHelpers::consumeRelativeControlPoint):
(WebCore::CSSPropertyParserHelpers::consumeCircleRadialSize):
(WebCore::CSSPropertyParserHelpers::consumeEllipseRadialSize):
(WebCore::CSSPropertyParserHelpers::consumeShapeCommandAffinity):
* Source/WebCore/dom/DatasetDOMStringMap.cpp:
(WebCore::convertPropertyNameToAttributeName):
* Source/WebCore/dom/Document.cpp:
(WebCore::isPotentialCustomElementNameCharacter):
* Source/WebCore/dom/SecurityContext.cpp:
(WebCore::SecurityContext::isSupportedSandboxPolicy):
* Source/WebCore/dom/TextEncoderStreamEncoder.cpp:
(WebCore::TextEncoderStreamEncoder::flush):
* Source/WebCore/dom/ViewTransition.cpp:
(WebCore::ViewTransition::setupDynamicStyleSheet):
(WebCore::ViewTransition::copyElementBaseProperties):
* Source/WebCore/editing/EditingStyle.cpp:
(WebCore::std::to_array<CSSPropertyID>):
* Source/WebCore/editing/EditorCommand.cpp:
(WebCore::createCommandMap):
* Source/WebCore/editing/TextManipulationController.cpp:
(WebCore::isAttributeForTextManipulation):
* Source/WebCore/html/Autofill.cpp:
(WebCore::AutofillFieldNameMapping>>):
* Source/WebCore/html/EnterKeyHint.cpp:
(WebCore::enterKeyHintForAttributeValue):
* Source/WebCore/html/HTMLMediaElement.cpp:
* Source/WebCore/html/HTMLVideoElement.cpp:
* Source/WebCore/html/InputType.cpp:
(WebCore::createInputTypeFactoryMap):
* Source/WebCore/html/LinkRelAttribute.cpp:
(WebCore::LinkTypeDetails>>):
* Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::getWebGLFloatArrayParameter):
* Source/WebCore/html/parser/HTMLPreloadScanner.cpp:
(WebCore::TokenPreloadScanner::tagIdFor):
(WebCore::TokenPreloadScanner::scan):
(WebCore::TokenPreloadScanner::updatePredictedBaseURL):
* Source/WebCore/html/parser/HTMLTreeBuilder.cpp:
(WebCore::createSVGAttributesMap):
(WebCore::createForeignAttributesMap):
* Source/WebCore/loader/MediaResourceLoader.cpp:
(WebCore::isManifestMIMEType):
* Source/WebCore/loader/icon/IconLoader.cpp:
(WebCore::IconLoader::notifyFinished):
* Source/WebCore/loader/soup/ResourceLoaderSoup.cpp:
(WebCore::contentTypeLookUpForKnownResource):
* Source/WebCore/mathml/MathMLOperatorDictionary.cpp:
(WebCore::std::to_array<char32_t>):
* Source/WebCore/mathml/MathMLPresentationElement.cpp:
(WebCore::MathMLPresentationElement::parseMathVariantAttribute):
* Source/WebCore/page/DebugPageOverlays.cpp:
(WebCore::NonFastScrollableRegionOverlay::drawRect):
* Source/WebCore/page/PerformanceUserTiming.cpp:
(WebCore::NavigationTimingFunction>>):
* Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:
(WebCore::createColor):
* Source/WebCore/platform/KeyboardScrollingAnimator.cpp:
(WebCore::keyboardScrollingKeyForKeyboardEvent):
* Source/WebCore/platform/LegacySchemeRegistry.cpp:
(WebCore::allBuiltinSchemes):
* Source/WebCore/platform/MIMETypeRegistry.cpp:
(WebCore::std::to_array<ComparableCaseFoldingASCIILiteral>):
(WebCore::makeFixedVector):
(WebCore::std::to_array<ComparableLettersLiteral>):
(WebCore::commonMimeTypesMap):
(WebCore::normalizedImageMIMEType):
* Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp:
* Source/WebCore/platform/cocoa/MIMETypeRegistryCocoa.mm:
(WebCore::additionalMimeTypesMap):
* Source/WebCore/platform/cocoa/RemoteCommandListenerCocoa.mm:
(WebCore::mediaRemoteCommandForPlatformCommand):
* Source/WebCore/platform/graphics/FontCascade.cpp:
(WebCore::FontCascade::hasValidAverageCharWidth const):
* Source/WebCore/platform/graphics/HEVCUtilities.cpp:
(WebCore::parseDoViCodecType):
(WebCore::profileIDForAlphabeticDoViProfile):
* Source/WebCore/platform/graphics/MIMESniffer.cpp:
(WebCore::MIMESniffer::mimeTypeFromSnifferEntries):
* Source/WebCore/platform/graphics/VP9Utilities.cpp:
(WebCore::isValidVPLevel):
(WebCore::isValidVPColorPrimaries):
(WebCore::isValidVPTransferCharacteristics):
(WebCore::isValidVPMatrixCoefficients):
* Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp:
(WebCore::GCGLExtension>>):
* Source/WebCore/platform/graphics/avfoundation/objc/AVAssetMIMETypeCache.mm:
(WebCore::AVAssetMIMETypeCache::isUnsupportedContainerType):
(WebCore::AVAssetMIMETypeCache::isStaticContainerType):
* Source/WebCore/platform/graphics/filters/FilterFunction.cpp:
(WebCore::FilterFunction::filterName):
* Source/WebCore/platform/mock/MockRealtimeVideoSource.cpp:
(WebCore::MockRealtimeVideoSource::drawBoxes):
* Source/WebCore/platform/network/CacheValidation.cpp:
* Source/WebCore/platform/network/HTTPParsers.cpp:
(WebCore::normalizeHTTPMethod):
(WebCore::isSafeMethod):
* Source/WebCore/platform/network/ResourceRequestBase.cpp:
* Source/WebCore/platform/network/mac/UTIUtilities.mm:
(WebCore::UTIFromPotentiallyUnknownMIMEType):
* Source/WebCore/platform/network/mac/WebCoreURLResponse.mm:
(WebCore::adjustMIMETypeIfNecessary):
* Source/WebCore/platform/sql/SQLiteDatabase.cpp:
(WebCore::SQLiteDatabase::overrideUnauthorizedFunctions):
* Source/WebCore/platform/text/LocaleICU.cpp:
(WebCore::LocaleICU::openDateFormat const):
(WebCore::getFormatForSkeleton):
(WebCore::LocaleICU::monthFormat):
(WebCore::LocaleICU::shortMonthFormat):
* Source/WebCore/platform/text/LocaleToScriptMapping.cpp:
(WebCore::scriptNameToCode):
(WebCore::localeToScriptCode):
* Source/WebCore/rendering/RenderCombineText.cpp:
(WebCore::RenderCombineText::combineTextIfNeeded):
* Source/WebCore/rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::paintDebugOverlays):
* Source/WebCore/rendering/RenderText.cpp:
(WebCore::convertToFullSizeKana):
* Source/WebCore/rendering/mathml/MathVariant.cpp:
(WebCore::mathVariantMapCodePoint):
* Source/WebCore/svg/SVGComponentTransferFunctionElement.h:
(WebCore::SVGPropertyTraits<ComponentTransferType>::fromString):
* Source/WebCore/svg/SVGFECompositeElement.h:
(WebCore::SVGPropertyTraits<CompositeOperationType>::fromString):
* Source/WebCore/testing/Internals.cpp:
(WebCore::parseFindOptions):
* Source/WebCore/testing/LegacyMockCDM.cpp:
(WebCore::initDataPrefix):
(WebCore::keyPrefix):
(WebCore::keyRequest):
* Source/WebCore/xml/XPathFunctions.cpp:
(WebCore::XPath::createFunctionMap):
* Source/WebCore/xml/XPathParser.cpp:
(WebCore::XPath::createAxisNamesMap):
* Source/WebGPU/WGSL/Lexer.cpp:
(WGSL::Lexer<T>::nextToken):
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/Types.h:
(WGSL::Types::PrimitiveStruct::FrexpResult::unsigned>>):
(WGSL::Types::PrimitiveStruct::ModfResult::unsigned>>):
(WGSL::Types::PrimitiveStruct::AtomicCompareExchangeResult::unsigned>>):
(WGSL::Types::PrimitiveStruct::2>>):
(WGSL::Types::PrimitiveStruct::>>): Deleted.
* Source/WebGPU/WGSL/WGSLEnums.cpp:
* Source/WebKit/WebProcess/WebPage/mac/WebPageMac.mm:
(WebKit::commandNameForSelectorName):
* Tools/TestWebKitAPI/Tests/WTF/SortedArrayMap.cpp:
(TEST(WTF, SortedArraySet)):
Canonical link: https://commits.webkit.org/304913@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications