[webkit-changes] [WebKit/WebKit] b58c8b: Use more ICU surrogate code point macros

Anne van Kesteren noreply at github.com
Tue Apr 4 10:23:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b58c8bed4445a0192e15f9bdc67bd0f0c45d4ea2
      https://github.com/WebKit/WebKit/commit/b58c8bed4445a0192e15f9bdc67bd0f0c45d4ea2
  Author: Anne van Kesteren <annevk at annevk.nl>
  Date:   2023-04-04 (Tue, 04 Apr 2023)

  Changed paths:
    M Source/JavaScriptCore/runtime/JSImmutableButterfly.cpp
    M Source/JavaScriptCore/runtime/RegExpObjectInlines.h
    M Source/WTF/wtf/text/StringImpl.cpp
    M Source/WebCore/PAL/pal/text/TextCodec.cpp
    M Source/WebCore/css/parser/CSSTokenizer.cpp
    M Source/WebCore/dom/TextEncoderStreamEncoder.cpp
    M Source/WebCore/dom/TextEncoderStreamEncoder.h

  Log Message:
  -----------
  Use more ICU surrogate code point macros
https://bugs.webkit.org/show_bug.cgi?id=254984
rdar://107602109

Reviewed by Darin Adler.

Make WebKit rely more on centrally defined checks and constants for code points, in particular for surrogates.

* Source/JavaScriptCore/runtime/JSImmutableButterfly.cpp:
(JSC::JSImmutableButterfly::createFromString):
* Source/JavaScriptCore/runtime/RegExpObjectInlines.h:
(JSC::advanceStringUnicode):
* Source/WTF/wtf/text/StringImpl.cpp:
(WTF::StringImpl::utf8ForCharactersIntoBuffer):
* Source/WebCore/PAL/pal/text/TextCodec.cpp:
(PAL::TextCodec::getUnencodableReplacement):
* Source/WebCore/css/parser/CSSTokenizer.cpp:
(WebCore::CSSTokenizer::consumeEscape):
* Source/WebCore/dom/TextEncoderStreamEncoder.cpp:
(WebCore::TextEncoderStreamEncoder::encode):
(WebCore::TextEncoderStreamEncoder::flush):
* Source/WebCore/dom/TextEncoderStreamEncoder.h:

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




More information about the webkit-changes mailing list