Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: e59e03e1df5b9d3dce970b9590767ceaabb9da47 https://github.com/WebKit/WebKit/commit/e59e03e1df5b9d3dce970b9590767ceaabb9da47 Author: Chris Dumez <cdu...@apple.com> Date: 2023-11-17 (Fri, 17 Nov 2023)
Changed paths: M Source/WTF/wtf/HashTraits.h M Source/WTF/wtf/text/ASCIILiteral.h M Source/WebCore/PAL/pal/text/TextCodec.h M Source/WebCore/PAL/pal/text/TextCodecCJK.cpp 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/TextCodecReplacement.cpp M Source/WebCore/PAL/pal/text/TextCodecSingleByte.cpp M Source/WebCore/PAL/pal/text/TextCodecUTF16.cpp M Source/WebCore/PAL/pal/text/TextCodecUTF8.cpp M Source/WebCore/PAL/pal/text/TextCodecUserDefined.cpp M Source/WebCore/PAL/pal/text/TextEncoding.cpp M Source/WebCore/PAL/pal/text/TextEncoding.h M Source/WebCore/PAL/pal/text/TextEncodingRegistry.cpp M Source/WebCore/PAL/pal/text/TextEncodingRegistry.h M Source/WebCore/dom/Document.cpp M Source/WebCore/dom/Document.h M Source/WebCore/dom/DocumentInlines.h Log Message: ----------- Adopt ASCIILiteral in TextEncoding code https://bugs.webkit.org/show_bug.cgi?id=264988 Reviewed by Darin Adler. Adopt ASCIILiteral in TextEncoding code instead of `const char*` to clarify the lifetime of these strings. * Source/WTF/wtf/HashTraits.h: (WTF::HashTraits<ASCIILiteral>::emptyValue): (WTF::HashTraits<ASCIILiteral>::constructDeletedValue): (WTF::HashTraits<ASCIILiteral>::isDeletedValue): * Source/WTF/wtf/text/ASCIILiteral.h: (WTF::ASCIILiteral::hash const): (WTF::ASCIILiteralHash::hash): (WTF::ASCIILiteralHash::equal): * Source/WebCore/PAL/pal/text/TextCodec.h: * Source/WebCore/PAL/pal/text/TextCodecCJK.cpp: (PAL::TextCodecCJK::registerEncodingNames): (PAL::TextCodecCJK::registerCodecs): * Source/WebCore/PAL/pal/text/TextCodecICU.cpp: (PAL::TextCodecICU::registerCodecs): (PAL::TextCodecICU::TextCodecICU): * Source/WebCore/PAL/pal/text/TextCodecICU.h: * Source/WebCore/PAL/pal/text/TextCodecLatin1.cpp: (PAL::TextCodecLatin1::registerEncodingNames): (PAL::TextCodecLatin1::registerCodecs): * Source/WebCore/PAL/pal/text/TextCodecReplacement.cpp: (PAL::TextCodecReplacement::registerEncodingNames): (PAL::TextCodecReplacement::registerCodecs): * Source/WebCore/PAL/pal/text/TextCodecSingleByte.cpp: (PAL::TextCodecSingleByte::registerEncodingNames): (PAL::TextCodecSingleByte::registerCodecs): * Source/WebCore/PAL/pal/text/TextCodecUTF16.cpp: (PAL::TextCodecUTF16::registerEncodingNames): (PAL::TextCodecUTF16::registerCodecs): * Source/WebCore/PAL/pal/text/TextCodecUTF8.cpp: (PAL::TextCodecUTF8::registerEncodingNames): (PAL::TextCodecUTF8::registerCodecs): * Source/WebCore/PAL/pal/text/TextCodecUserDefined.cpp: (PAL::TextCodecUserDefined::registerEncodingNames): (PAL::TextCodecUserDefined::registerCodecs): * Source/WebCore/PAL/pal/text/TextEncoding.cpp: (PAL::TextEncoding::decode const): (PAL::TextEncoding::encode const): (PAL::TextEncoding::domName const): (PAL::TextEncoding::usesVisualOrdering const): * Source/WebCore/PAL/pal/text/TextEncoding.h: (PAL::TextEncoding::isValid const): (PAL::TextEncoding::name const): * Source/WebCore/PAL/pal/text/TextEncodingRegistry.cpp: (PAL::TextEncodingNameHash::hash): (PAL::HashTranslatorTextEncodingName::hash): (PAL::HashTranslatorTextEncodingName::equal): (PAL::isUndesiredAlias): (PAL::WTF_REQUIRES_LOCK): (PAL::isJapaneseEncoding): (PAL::shouldShowBackslashAsCurrencySymbolIn): (PAL::newTextCodec): (PAL::atomCanonicalTextEncodingName): * Source/WebCore/PAL/pal/text/TextEncodingRegistry.h: * Source/WebCore/dom/DocumentInlines.h: (WebCore::Document::encoding const): Canonical link: https://commits.webkit.org/270903@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes