Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: be31a7f8da426370970e1acc2b3df5a628a5e567
https://github.com/WebKit/WebKit/commit/be31a7f8da426370970e1acc2b3df5a628a5e567
Author: Ahmad Saleem <[email protected]>
Date: 2026-08-29 (Sat, 29 Aug 2026)
Changed paths:
M Source/WebCore/svg/SVGLengthValue.cpp
Log Message:
-----------
Simplify SVGLengthValue::setValueAsString() whitespace handling
https://bugs.webkit.org/show_bug.cgi?id=322610
rdar://185914243
Reviewed by Sam Weinig.
Drop the StringView::trim(). Leading whitespace is skipped with
CSSParserTokenRange::consumeWhitespace() and each consumer already ends with
consumeIncludingWhitespace(), so the trailing run is gone before atEnd() is
checked. The tokenizer treats exactly space, tab, LF, FF and CR as whitespace,
matching isASCIIWhitespace(), so accepted inputs do not change. All-whitespace
input now leaves the range empty, so MetaConsumer::consume() fails and we return
SyntaxError as before.
* Source/WebCore/svg/SVGLengthValue.cpp:
(WebCore::SVGLengthValue::setValueAsString):
Canonical link: https://commits.webkit.org/320103@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications