-
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.
Make most CSSSelector setters only available to MutableCSSSelector
https://bugs.webkit.org/show_bug.cgi?id=267060 rdar://120434084 Reviewed by Simon Fraser. CSSSelector isn't meant to be mutated in the majority of cases, restrict most setters to MutableCSSSelector. * Source/WebCore/css/CSSSelector.h: (WebCore::CSSSelector::hasDescendantRelation const): (WebCore::CSSSelector::relation const): (WebCore::CSSSelector::match const): (WebCore::CSSSelector::isLastInSelectorList const): (WebCore::CSSSelector::isFirstInTagHistory const): (WebCore::CSSSelector::setLastInSelectorList): (WebCore::CSSSelector::setNotFirstInTagHistory): (WebCore::CSSSelector::setNotLastInTagHistory): (WebCore::CSSSelector::isForPage const): (WebCore::CSSSelector::setForPage): (WebCore::CSSSelector::setImplicit): (WebCore::CSSSelector::tagHistory): (WebCore::CSSSelector::setNotLastInSelectorList): Deleted. (WebCore::CSSSelector::setLastInTagHistory): Deleted. * Source/WebCore/css/parser/CSSParserImpl.cpp: (WebCore::appendImplicitSelectorPseudoClassScopeIfNeeded): (WebCore::CSSParserImpl::createNestingParentRule): * Source/WebCore/css/parser/MutableCSSSelector.h: (WebCore::MutableCSSSelector::setImplicit): Canonical link: https://commits.webkit.org/272635@main
- Loading branch information
Showing
3 changed files
with
35 additions
and
34 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