[webkit-changes] [WebKit/WebKit] 4e98b4: Further reduce use of std::span::subspan() by leve...

Chris Dumez noreply at github.com
Thu Jan 2 18:18:58 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4e98b4d7345d77ada364888535ef651e7dc53f70
      https://github.com/WebKit/WebKit/commit/4e98b4d7345d77ada364888535ef651e7dc53f70
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2025-01-02 (Thu, 02 Jan 2025)

  Changed paths:
    M Source/JavaScriptCore/runtime/Identifier.h
    M Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
    M Source/JavaScriptCore/runtime/JSONObject.cpp
    M Source/JavaScriptCore/runtime/JSStringInlines.h
    M Source/JavaScriptCore/runtime/JSStringJoiner.cpp
    M Source/WTF/wtf/DateMath.cpp
    M Source/WTF/wtf/FileSystem.cpp
    M Source/WTF/wtf/JSONValues.cpp
    M Source/WTF/wtf/StreamBuffer.h
    M Source/WTF/wtf/URLHelpers.cpp
    M Source/WTF/wtf/darwin/OSLogPrintStream.mm
    M Source/WTF/wtf/posix/FileSystemPOSIX.cpp
    M Source/WTF/wtf/text/Base64.cpp
    M Source/WTF/wtf/text/CodePointIterator.h
    M Source/WTF/wtf/text/ParsingUtilities.h
    M Source/WTF/wtf/text/StringBuilderJSON.cpp
    M Source/WTF/wtf/text/StringBuilderJSON.h
    M Source/WTF/wtf/text/StringImpl.cpp
    M Source/WTF/wtf/text/StringToIntegerConversion.h
    M Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp
    M Source/WebCore/Modules/indexeddb/server/IDBSerialization.cpp
    M Source/WebCore/Modules/mediastream/RTCRtpSFrameTransformer.cpp
    M Source/WebCore/Modules/mediastream/STUNMessageParsing.cpp
    M Source/WebCore/Modules/webaudio/OscillatorNode.cpp
    M Source/WebCore/Modules/websockets/WebSocketExtensionParser.cpp
    M Source/WebCore/Modules/websockets/WebSocketFrame.cpp
    M Source/WebCore/Modules/websockets/WebSocketHandshake.cpp
    M Source/WebCore/PAL/pal/text/TextCodecICU.cpp
    M Source/WebCore/PAL/pal/text/TextCodecLatin1.cpp
    M Source/WebCore/PAL/pal/text/TextCodecUTF8.cpp
    M Source/WebCore/bindings/js/SerializedScriptValue.cpp
    M Source/WebCore/contentextensions/SerializedNFA.cpp
    M Source/WebCore/crypto/cocoa/CryptoAlgorithmAESCBCMac.cpp
    M Source/WebCore/crypto/cocoa/CryptoAlgorithmAESCFBMac.cpp
    M Source/WebCore/crypto/cocoa/CryptoUtilitiesCocoa.cpp
    M Source/WebCore/css/CSSMarkup.cpp
    M Source/WebCore/css/CSSStyleDeclaration.cpp
    M Source/WebCore/css/CSSVariableData.cpp
    M Source/WebCore/css/parser/CSSParserFastPaths.cpp
    M Source/WebCore/dom/SpaceSplitString.cpp
    M Source/WebCore/editing/Editor.cpp
    M Source/WebCore/editing/TextIterator.cpp
    M Source/WebCore/editing/cocoa/DataDetection.mm
    M Source/WebCore/editing/cocoa/HTMLConverter.mm
    M Source/WebCore/html/HTMLFontElement.cpp
    M Source/WebCore/html/parser/HTMLParserIdioms.cpp
    M Source/WebCore/html/parser/HTMLSrcsetParser.cpp
    M Source/WebCore/html/parser/HTMLTreeBuilder.cpp
    M Source/WebCore/html/track/VTTScanner.h
    M Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp
    M Source/WebCore/loader/TextResourceDecoder.cpp
    M Source/WebCore/platform/SharedBuffer.cpp
    M Source/WebCore/platform/SharedMemory.cpp
    M Source/WebCore/platform/audio/FFTConvolver.cpp
    M Source/WebCore/platform/audio/SincResampler.cpp
    M Source/WebCore/platform/audio/cocoa/CARingBuffer.cpp
    M Source/WebCore/platform/cocoa/SharedVideoFrameInfo.mm
    M Source/WebCore/platform/graphics/ShadowBlur.cpp
    M Source/WebCore/platform/graphics/filters/FilterImage.cpp
    M Source/WebCore/platform/network/HTTPParsers.cpp
    M Source/WebCore/platform/text/SegmentedString.cpp
    M Source/WebCore/platform/text/SegmentedString.h
    M Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp
    M Source/WebCore/svg/SVGPathByteStreamSource.h
    M Source/WebGPU/WGSL/AST/ASTBuilder.h
    M Source/WebKit/Platform/IPC/cocoa/ConnectionCocoa.mm
    M Source/WebKit/UIProcess/mac/LegacySessionStateCoding.cpp
    M Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.cpp
    M Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/PDFPageCoverage.h

  Log Message:
  -----------
  Further reduce use of std::span::subspan() by leveraging ParsingUtilities
https://bugs.webkit.org/show_bug.cgi?id=285283

Reviewed by Darin Adler.

* Source/WTF/wtf/DateMath.cpp:
(WTF::parseDate):
* Source/WTF/wtf/FileSystem.cpp:
(WTF::FileSystemImpl::mapToFile):
* Source/WTF/wtf/JSONValues.cpp:
* Source/WTF/wtf/StreamBuffer.h:
(WTF::StreamBuffer::append):
* Source/WTF/wtf/URLHelpers.cpp:
(WTF::URLHelpers::userVisibleURL):
* Source/WTF/wtf/text/Base64.cpp:
(WTF::fromBase64SlowImpl):
* Source/WTF/wtf/text/ParsingUtilities.h:
(WTF::skipUntil):
(WTF::skipWhile):
(WTF::consumeSpan):
(WTF::consumeSingleElementOfType):
* Source/WTF/wtf/text/StringBuilderJSON.cpp:
(WTF::StringBuilder::appendQuotedJSONString):
* Source/WTF/wtf/text/StringBuilderJSON.h:
(WTF::appendEscapedJSONStringContent):
* Source/WTF/wtf/text/StringImpl.cpp:
(WTF::StringImpl::simplifyMatchedCharactersToSpace):
* Source/WTF/wtf/text/StringToIntegerConversion.h:
(WTF::parseInteger):
* Source/WebCore/Modules/indexeddb/server/IDBSerialization.cpp:
(WebCore::readLittleEndian):
(WebCore::decodeKey):
(WebCore::deserializeIDBKeyData):
* Source/WebCore/Modules/mediastream/RTCRtpSFrameTransformer.cpp:
(WebCore::parseSFrameHeader):
* Source/WebCore/Modules/mediastream/STUNMessageParsing.cpp:
(WebCore::WebRTC::extractDataMessages):
* Source/WebCore/Modules/websockets/WebSocketExtensionParser.cpp:
(WebCore::isSpaceOrTab):
(WebCore::WebSocketExtensionParser::skipSpaces):
(WebCore::WebSocketExtensionParser::consumeToken):
(WebCore::WebSocketExtensionParser::consumeQuotedString):
(WebCore::WebSocketExtensionParser::consumeCharacter):
* Source/WebCore/PAL/pal/text/TextCodecLatin1.cpp:
(PAL::TextCodecLatin1::decode):
* Source/WebCore/PAL/pal/text/TextCodecUTF8.cpp:
(PAL::TextCodecUTF8::handlePartialSequence):
(PAL::TextCodecUTF8::decode):
* Source/WebCore/bindings/js/SerializedScriptValue.cpp:
(WebCore::CloneDeserializer::readLittleEndian):
(WebCore::CloneDeserializer::readTag):
(WebCore::CloneDeserializer::readArrayBufferViewSubtag):
(WebCore::CloneDeserializer::readResizableNonSharedArrayBuffer):
(WebCore::CloneDeserializer::read):
* Source/WebCore/css/CSSMarkup.cpp:
(WebCore::isCSSTokenizerIdentifier):
* Source/WebCore/css/CSSStyleDeclaration.cpp:
* Source/WebCore/css/CSSVariableData.cpp:
(WebCore::CSSVariableData::updateBackingStringsInTokens):
* Source/WebCore/css/parser/CSSParserFastPaths.cpp:
(WebCore::parseColorIntOrPercentage):
(WebCore::parseRGBAlphaValue):
(WebCore::parseLegacyHSL):
* Source/WebCore/editing/TextIterator.cpp:
(WebCore::SearchBuffer::isBadMatch const):
* Source/WebCore/editing/cocoa/HTMLConverter.mm:
(consume):
* Source/WebCore/html/parser/HTMLParserIdioms.cpp:
(WebCore::isHTMLSpaceOrDelimiterOrNumberStart):
(WebCore::parseHTMLListOfOfFloatingPointNumberValuesInternal):
(WebCore::isASCIIDigitOrPeriod):
(WebCore::parseHTTPRefreshInternal):
* Source/WebCore/loader/TextResourceDecoder.cpp:
(WebCore::TextResourceDecoder::checkForCSSCharset):
(WebCore::TextResourceDecoder::checkForHeadCharset):
* Source/WebCore/platform/SharedMemory.cpp:
(WebCore::SharedMemory::copyBuffer):
* Source/WebCore/platform/audio/SincResampler.cpp:
(WebCore::SincResampler::processBuffer):
* Source/WebCore/platform/network/HTTPParsers.cpp:
(WebCore::parseHTTPHeader):
* Source/WebKit/Platform/IPC/cocoa/ConnectionCocoa.mm:
(IPC::popDescriptorAndAdvance):
(IPC::Connection::sendOutgoingMessage):
(IPC::createMessageDecoder):
* Source/WebKit/UIProcess/mac/LegacySessionStateCoding.cpp:
(WebKit::HistoryEntryDataDecoder::operator>>):
(WebKit::HistoryEntryDataDecoder::decodeFixedLengthData):

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



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


More information about the webkit-changes mailing list