Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c61466deef93b4a529c8cbc18b633a2781b2d15a
https://github.com/WebKit/WebKit/commit/c61466deef93b4a529c8cbc18b633a2781b2d15a
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-30 (Thu, 30 Jul 2026)
Changed paths:
M Source/WebCore/cssjit/SelectorCompiler.cpp
Log Message:
-----------
[cssjit] Use WTF::compactMap in generateElementIsNthChildOf
https://bugs.webkit.org/show_bug.cgi?id=320630
rdar://183593777
Reviewed by Chris Dumez.
generateElementIsNthChildOf built its list of non-trivial nth filters with a
manual loop, while the three sibling functions that do the same filtering
(generateElementIsNthChild, generateElementIsNthLastChild and
generateElementIsNthLastChildOf) all use WTF::compactMap. Match them.
No change in behavior.
* Source/WebCore/cssjit/SelectorCompiler.cpp:
(WebCore::SelectorCompiler::SelectorCodeGenerator::generateElementIsNthChildOf):
Canonical link: https://commits.webkit.org/318244@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications