[webkit-changes] [WebKit/WebKit] 2275a8: Simplify PAL::TextCodecUTF8::encodeUTF8 and use it...
Anne van Kesteren
noreply at github.com
Mon Apr 3 15:02:24 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2275a8c0d58f4cf88db4a3e5ceeb471e934e2c50
https://github.com/WebKit/WebKit/commit/2275a8c0d58f4cf88db4a3e5ceeb471e934e2c50
Author: Anne van Kesteren <annevk at annevk.nl>
Date: 2023-04-03 (Mon, 03 Apr 2023)
Changed paths:
M Source/WebCore/Modules/fetch/FetchBody.cpp
M Source/WebCore/PAL/pal/text/TextCodecReplacement.cpp
M Source/WebCore/PAL/pal/text/TextCodecUTF8.cpp
M Source/WebCore/PAL/pal/text/TextCodecUTF8.h
M Source/WebCore/fileapi/BlobBuilder.cpp
M Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
M Source/WebCore/xml/XMLHttpRequest.cpp
Log Message:
-----------
Simplify PAL::TextCodecUTF8::encodeUTF8 and use it more
https://bugs.webkit.org/show_bug.cgi?id=254909
rdar://107549740
Reviewed by Youenn Fablet.
The second argument does not end up getting used so remove it. And then make use of it in a number of places that want to UTF-8 encode a string view.
* Source/WebCore/Modules/fetch/FetchBody.cpp:
(WebCore::FetchBody::consumeAsStream):
(WebCore::FetchBody::consumeText):
(WebCore::FetchBody::bodyAsFormData const):
(WebCore::FetchBody::take):
* Source/WebCore/PAL/pal/text/TextCodecReplacement.cpp:
(PAL::TextCodecReplacement::encode const):
* Source/WebCore/PAL/pal/text/TextCodecUTF8.cpp:
(PAL::TextCodecUTF8::encodeUTF8):
(PAL::TextCodecUTF8::encode const):
* Source/WebCore/PAL/pal/text/TextCodecUTF8.h:
* Source/WebCore/fileapi/BlobBuilder.cpp:
(WebCore::BlobBuilder::append):
* Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::clearMediaCache):
(WebCore::MediaPlayerPrivateAVFoundationObjC::cancelLoad):
(WebCore::MediaPlayerPrivateAVFoundationObjC::synchronizeTextTrackState):
(WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL):
(WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayerItem):
(WebCore::MediaPlayerPrivateAVFoundationObjC::accessLog const):
(WebCore::MediaPlayerPrivateAVFoundationObjC::platformSetVisible):
(WebCore::MediaPlayerPrivateAVFoundationObjC::platformDuration const):
(WebCore::MediaPlayerPrivateAVFoundationObjC::seekToTime):
(WebCore::MediaPlayerPrivateAVFoundationObjC::platformMaxTimeSeekable const):
(WebCore::MediaPlayerPrivateAVFoundationObjC::platformMaxTimeLoaded const):
(WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource):
(WebCore::determineChangedTracksFromNewTracksAndOldItems):
(WebCore::MediaPlayerPrivateAVFoundationObjC::processMediaSelectionOptions):
(WebCore::MediaPlayerPrivateAVFoundationObjC::flushCues):
(WebCore::MediaPlayerPrivateAVFoundationObjC::setBufferingPolicy):
* Source/WebCore/xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::send):
Canonical link: https://commits.webkit.org/262532@main
More information about the webkit-changes
mailing list