Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 66e2e265cfeecef8ddee8ba16e16acbf35644a7b
https://github.com/WebKit/WebKit/commit/66e2e265cfeecef8ddee8ba16e16acbf35644a7b
Author: Sam Weinig <[email protected]>
Date: 2026-08-28 (Fri, 28 Aug 2026)
Changed paths:
M Source/WebCore/css/parser/CSSCustomPropertySyntax.cpp
M Source/WebCore/css/parser/CSSParser.h
M Source/WebCore/css/parser/CSSTokenizer.cpp
M Source/WebCore/css/parser/CSSTokenizer.h
M Source/WebCore/css/parser/CSSTokenizerInputStream.cpp
M Source/WebCore/css/parser/CSSTokenizerInputStream.h
M Source/WebCore/css/typedom/CSSUnparsedValue.cpp
M Source/WebCore/style/StyleCustomProperty.cpp
M Source/WebCore/svg/SVGLengthValue.cpp
Log Message:
-----------
Make CSSTokenizer work efficiently with StringViews
https://bugs.webkit.org/show_bug.cgi?id=322730
Reviewed by Darin Adler.
Makes CSSTokenizer and CSSTokenizerInputStream operate on StringView rather
than String and StringImpl.
Biggest change is in CSSTokenizer::preprocessString where we now check the
string for null characters and unpair surrogates before allocating a
replacement, making sure to do the minimum required based on character type.
* Source/WebCore/css/parser/CSSCustomPropertySyntax.cpp:
* Source/WebCore/css/parser/CSSParser.h:
* Source/WebCore/css/parser/CSSTokenizer.cpp:
* Source/WebCore/css/parser/CSSTokenizer.h:
* Source/WebCore/css/parser/CSSTokenizerInputStream.cpp:
* Source/WebCore/css/parser/CSSTokenizerInputStream.h:
* Source/WebCore/css/typedom/CSSUnparsedValue.cpp:
* Source/WebCore/style/StyleCustomProperty.cpp:
* Source/WebCore/svg/SVGLengthValue.cpp:
Canonical link: https://commits.webkit.org/320094@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications