[webkit-changes] [WebKit/WebKit] c6ba4e: Update TextCodec::decode() to take in a std::span

Chris Dumez noreply at github.com
Wed Mar 20 14:30:41 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c6ba4e769fb09334ad7f67d6464f37b0beb7055d
      https://github.com/WebKit/WebKit/commit/c6ba4e769fb09334ad7f67d6464f37b0beb7055d
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2024-03-20 (Wed, 20 Mar 2024)

  Changed paths:
    M Source/WebCore/Modules/encryptedmedia/legacy/LegacyCDMSessionClearKey.cpp
    M Source/WebCore/PAL/pal/text/DecodeEscapeSequences.h
    M Source/WebCore/PAL/pal/text/TextCodec.cpp
    M Source/WebCore/PAL/pal/text/TextCodec.h
    M Source/WebCore/PAL/pal/text/TextCodecCJK.cpp
    M Source/WebCore/PAL/pal/text/TextCodecCJK.h
    M Source/WebCore/PAL/pal/text/TextCodecICU.cpp
    M Source/WebCore/PAL/pal/text/TextCodecICU.h
    M Source/WebCore/PAL/pal/text/TextCodecLatin1.cpp
    M Source/WebCore/PAL/pal/text/TextCodecLatin1.h
    M Source/WebCore/PAL/pal/text/TextCodecReplacement.cpp
    M Source/WebCore/PAL/pal/text/TextCodecReplacement.h
    M Source/WebCore/PAL/pal/text/TextCodecSingleByte.cpp
    M Source/WebCore/PAL/pal/text/TextCodecSingleByte.h
    M Source/WebCore/PAL/pal/text/TextCodecUTF16.cpp
    M Source/WebCore/PAL/pal/text/TextCodecUTF16.h
    M Source/WebCore/PAL/pal/text/TextCodecUTF8.cpp
    M Source/WebCore/PAL/pal/text/TextCodecUTF8.h
    M Source/WebCore/PAL/pal/text/TextCodecUserDefined.cpp
    M Source/WebCore/PAL/pal/text/TextCodecUserDefined.h
    M Source/WebCore/PAL/pal/text/TextEncoding.cpp
    M Source/WebCore/PAL/pal/text/TextEncoding.h
    M Source/WebCore/PAL/pal/text/win/TextCodecWin.cpp
    M Source/WebCore/PAL/pal/text/win/TextCodecWin.h
    M Source/WebCore/dom/TextDecoder.cpp
    M Source/WebCore/inspector/agents/InspectorPageAgent.cpp
    M Source/WebCore/inspector/agents/InspectorPageAgent.h
    M Source/WebCore/platform/network/FormData.cpp
    M Source/WebCore/platform/win/ClipboardUtilitiesWin.cpp
    M Source/WebCore/platform/win/PasteboardWin.cpp
    M Source/WebKit/WebProcess/WebPage/WebFrame.cpp
    M Source/WebKitLegacy/mac/WebView/WebFrame.mm
    M Source/WebKitLegacy/mac/WebView/WebHTMLRepresentation.mm
    M Source/WebKitLegacy/mac/WebView/WebResource.mm
    M Tools/TestWebKitAPI/Tests/WebCore/TextCodec.cpp

  Log Message:
  -----------
  Update TextCodec::decode() to take in a std::span
https://bugs.webkit.org/show_bug.cgi?id=271284

Reviewed by Darin Adler.

Update TextCodec::decode() to take in a std::span instead of a raw pointer & size.

* Source/WebCore/Modules/encryptedmedia/legacy/LegacyCDMSessionClearKey.cpp:
(WebCore::CDMSessionClearKey::generateKeyRequest):
* Source/WebCore/PAL/pal/text/DecodeEscapeSequences.h:
(PAL::URLEscapeSequence::decodeRun):
* Source/WebCore/PAL/pal/text/TextCodec.cpp:
(PAL::TextCodec::decode): Deleted.
* Source/WebCore/PAL/pal/text/TextCodec.h:
* Source/WebCore/PAL/pal/text/TextCodecCJK.cpp:
(PAL::TextCodecCJK::decodeCommon):
(PAL::TextCodecCJK::eucJPDecode):
(PAL::TextCodecCJK::iso2022JPDecode):
(PAL::TextCodecCJK::shiftJISDecode):
(PAL::TextCodecCJK::eucKRDecode):
(PAL::TextCodecCJK::gb18030Decode):
(PAL::TextCodecCJK::gbkDecode):
(PAL::TextCodecCJK::big5Decode):
(PAL::TextCodecCJK::decode):
* Source/WebCore/PAL/pal/text/TextCodecCJK.h:
* Source/WebCore/PAL/pal/text/TextCodecICU.cpp:
(PAL::TextCodecICU::decode):
* Source/WebCore/PAL/pal/text/TextCodecICU.h:
* Source/WebCore/PAL/pal/text/TextCodecLatin1.cpp:
(PAL::TextCodecLatin1::decode):
* Source/WebCore/PAL/pal/text/TextCodecLatin1.h:
* Source/WebCore/PAL/pal/text/TextCodecReplacement.cpp:
(PAL::TextCodecReplacement::decode):
* Source/WebCore/PAL/pal/text/TextCodecReplacement.h:
* Source/WebCore/PAL/pal/text/TextCodecSingleByte.cpp:
(PAL::decode):
(PAL::TextCodecSingleByte::decode):
* Source/WebCore/PAL/pal/text/TextCodecSingleByte.h:
* Source/WebCore/PAL/pal/text/TextCodecUTF16.cpp:
(PAL::TextCodecUTF16::decode):
* Source/WebCore/PAL/pal/text/TextCodecUTF16.h:
* Source/WebCore/PAL/pal/text/TextCodecUTF8.cpp:
(PAL::TextCodecUTF8::decode):
* Source/WebCore/PAL/pal/text/TextCodecUTF8.h:
* Source/WebCore/PAL/pal/text/TextCodecUserDefined.cpp:
(PAL::TextCodecUserDefined::decode):
* Source/WebCore/PAL/pal/text/TextCodecUserDefined.h:
* Source/WebCore/PAL/pal/text/TextEncoding.cpp:
(PAL::TextEncoding::decode const):
* Source/WebCore/PAL/pal/text/TextEncoding.h:
(PAL::TextEncoding::decode const):
* Source/WebCore/PAL/pal/text/win/TextCodecWin.cpp:
(PAL::TextCodecWin::decode):
* Source/WebCore/PAL/pal/text/win/TextCodecWin.h:
* Source/WebCore/dom/TextDecoder.cpp:
(WebCore::TextDecoder::decode):
* Source/WebCore/inspector/agents/InspectorPageAgent.cpp:
(WebCore::decodeBuffer):
(WebCore::InspectorPageAgent::mainResourceContent):
(WebCore::InspectorPageAgent::sharedBufferContent):
(WebCore::InspectorPageAgent::dataContent):
* Source/WebCore/inspector/agents/InspectorPageAgent.h:
* Source/WebCore/platform/network/FormData.cpp:
(WebCore::FormData::flattenToString const):

Canonical link: https://commits.webkit.org/276422@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