[webkit-changes] [WebKit/WebKit] becd84: More SortedArrayMap clients can use the Packed typ...

Darin Adler noreply at github.com
Fri Oct 28 11:57:03 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: becd8424226a4a29c34b9d66d37d9538f304086b
      https://github.com/WebKit/WebKit/commit/becd8424226a4a29c34b9d66d37d9538f304086b
  Author: Darin Adler <darin at apple.com>
  Date:   2022-10-28 (Fri, 28 Oct 2022)

  Changed paths:
    M Source/WTF/wtf/FileSystem.h
    M Source/WTF/wtf/text/ASCIILiteral.h
    M Source/WTF/wtf/text/Base64.h
    M Source/WTF/wtf/text/StringImpl.h
    M Source/WTF/wtf/text/StringSearch.h
    M Source/WebCore/html/EnterKeyHint.cpp
    M Source/WebCore/html/parser/HTMLTokenizer.h
    M Source/WebCore/html/track/WebVTTParser.cpp
    M Source/WebCore/platform/KeyboardScrollingAnimator.cpp
    M Source/WebCore/platform/graphics/HEVCUtilities.cpp
    M Source/WebCore/platform/text/LocaleToScriptMapping.cpp
    M Source/WebCore/svg/SVGComponentTransferFunctionElement.h
    M Source/WebCore/xml/XPathFunctions.cpp

  Log Message:
  -----------
  More SortedArrayMap clients can use the Packed types from that header for efficiency
https://bugs.webkit.org/show_bug.cgi?id=246924
rdar://problem/101478661

Reviewed by Yusuke Suzuki.

* Source/WTF/wtf/FileSystem.h: Removed include of Span.h; ASCIILiteral.h pulls it in.

* Source/WTF/wtf/text/ASCIILiteral.h: Added ASCIILiteral::span8.

* Source/WTF/wtf/text/Base64.h: Removed include of Span.h.
* Source/WTF/wtf/text/StringImpl.h: Ditto.
* Source/WTF/wtf/text/StringSearch.h: Ditto.

* Source/WebCore/html/EnterKeyHint.cpp:
(WebCore::enterKeyHintForAttributeValue): Use PackedLettersLiteral<uint64_t>
instead of ComparableLettersLiteral because the literals all have length <= 8.

* Source/WebCore/html/parser/HTMLTokenizer.h:
(WebCore::HTMLTokenizer::bufferCharacters): Use ASCIILiteral::span8.

* Source/WebCore/html/track/WebVTTParser.cpp:
(WebCore::WebVTTParser::checkAndCreateRegion): Fixed "charecters" typo.
(WebCore::WebVTTParser::checkStyleSheet): Ditto.

* Source/WebCore/platform/KeyboardScrollingAnimator.cpp:
(WebCore::keyboardScrollingKeyForKeyboardEvent): Use PackedASCIILiteral<uint64_t>
instead of ComparableASCIILiteral because the literals all have length <= 8.

* Source/WebCore/platform/graphics/HEVCUtilities.cpp:
(WebCore::parseDoViCodecType): Use PackedLettersLiteral<uint32_t> instead of
PackedASCIILowerCodes<uint32_t> because all the characters are compatible with
the faster code path.
(WebCore::profileIDForAlphabeticDoViProfile): Ditto.
* Source/WebCore/platform/text/LocaleToScriptMapping.cpp:
(WebCore::scriptNameToCode): Ditto.

* Source/WebCore/svg/SVGComponentTransferFunctionElement.h:
(WebCore::SVGPropertyTraits<ComponentTransferType>::fromString): Use
PackedASCIILiteral<uint64_t> instead of ComparableASCIILiteral because the
literals all have length <= 8.

* Source/WebCore/xml/XPathFunctions.cpp:
(WebCore::XPath::toStringView): Deleted.
(WebCore::XPath::FunId::evaluate const): Use the conversion built into StringView
instead of the toStringView function.

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




More information about the webkit-changes mailing list