Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c299bd390612213ce82f4418ae55a4613791c462
https://github.com/WebKit/WebKit/commit/c299bd390612213ce82f4418ae55a4613791c462
Author: Ahmad Saleem <[email protected]>
Date: 2026-03-15 (Sun, 15 Mar 2026)
Changed paths:
M Source/WebCore/css/parser/SizesAttributeParser.cpp
Log Message:
-----------
Skip unnecessary work in SizesAttributeParser for empty sizes attribute
https://bugs.webkit.org/show_bug.cgi?id=309931
rdar://172523849
Reviewed by Sam Weinig.
When the sizes attribute is null or empty, SizesAttributeParser
constructs a CSSTokenizer and CSSParserContext only for parse() to
immediately return with no result. Skip straight to the default
value path instead.
* Source/WebCore/css/parser/SizesAttributeParser.cpp:
(WebCore::SizesAttributeParser::SizesAttributeParser):
Canonical link: https://commits.webkit.org/309294@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications