Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: af57c6d8b53b6583f2f0d42fbf3695cc0b774a7b
https://github.com/WebKit/WebKit/commit/af57c6d8b53b6583f2f0d42fbf3695cc0b774a7b
Author: Chris Dumez <[email protected]>
Date: 2026-04-04 (Sat, 04 Apr 2026)
Changed paths:
M Source/WebCore/css/parser/CSSPropertyParserConsumer+Primitives.cpp
M Source/WebCore/css/parser/CSSPropertyParserConsumer+Transform.cpp
Log Message:
-----------
Minor CSS parser cleanups: avoid token copy and redundant null check
https://bugs.webkit.org/show_bug.cgi?id=311472
Reviewed by Anne van Kesteren.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Primitives.cpp:
(WebCore::CSSPropertyParserHelpers::consumeCommaIncludingWhitespace):
(WebCore::CSSPropertyParserHelpers::consumeSlashIncludingWhitespace):
Use a reference from peek() instead of copying CSSParserToken.
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Transform.cpp:
(WebCore::CSSPropertyParserHelpers::consumeTranslate):
Remove redundant null check on z; already guarded by early return.
Canonical link: https://commits.webkit.org/310585@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications