-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CSS] CSSSelectorList class should have a const_iterator
https://bugs.webkit.org/show_bug.cgi?id=271672 rdar://125373236 Reviewed by Antti Koivisto. CSSSelectorList is an optimized contiguous memory representation of a list. This patch adds a forward const iterator interface to it to be able to use range based for-loop. * Source/WebCore/css/CSSSelectorList.cpp: (WebCore::forEachTagSelector): (WebCore::forEachSelector): (WebCore::CSSSelectorList::hasExplicitNestingParent const): * Source/WebCore/css/CSSSelectorList.h: (WebCore::CSSSelectorList::const_iterator::operator* const): (WebCore::CSSSelectorList::const_iterator::operator-> const): (WebCore::CSSSelectorList::const_iterator::operator!= const): (WebCore::CSSSelectorList::const_iterator::const_iterator): (WebCore::CSSSelectorList::const_iterator::operator++): (WebCore::CSSSelectorList::begin const): (WebCore::CSSSelectorList::end const): * Source/WebCore/cssjit/SelectorCompiler.cpp: (WebCore::SelectorCompiler::addNthChildType): (WebCore::SelectorCompiler::addPseudoClassType): Canonical link: https://commits.webkit.org/276697@main
- Loading branch information
Showing
3 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters