зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1250820 - Part 3: Replace notPseudo with negation. r=heycam
notPseudo is easy to be confused with NotPseudo, so using negation would be better. MozReview-Commit-ID: BtlS1A5YgD3 --HG-- extra : rebase_source : 9c9233fefd826f3c912ef4b31bf096f2d2c4d693
This commit is contained in:
Родитель
66ed914313
Коммит
4487e71e34
|
@ -5993,7 +5993,7 @@ CSSParserImpl::ParsePseudoSelector(int32_t& aDataMask,
|
|||
#ifdef MOZ_XUL
|
||||
isTree ||
|
||||
#endif
|
||||
CSSPseudoClassType::notPseudo == pseudoClassType ||
|
||||
CSSPseudoClassType::negation == pseudoClassType ||
|
||||
nsCSSPseudoClasses::HasStringArg(pseudoClassType) ||
|
||||
nsCSSPseudoClasses::HasNthPairArg(pseudoClassType) ||
|
||||
nsCSSPseudoClasses::HasSelectorListArg(pseudoClassType))) {
|
||||
|
@ -6013,7 +6013,7 @@ CSSParserImpl::ParsePseudoSelector(int32_t& aDataMask,
|
|||
}
|
||||
|
||||
if (!parsingPseudoElement &&
|
||||
CSSPseudoClassType::notPseudo == pseudoClassType) {
|
||||
CSSPseudoClassType::negation == pseudoClassType) {
|
||||
if (aIsNegated) { // :not() can't be itself negated
|
||||
REPORT_UNEXPECTED_TOKEN(PEPseudoSelDoubleNot);
|
||||
UngetToken();
|
||||
|
|
|
@ -132,7 +132,7 @@ CSS_PSEUDO_CLASS(scope, ":scope", 0, "layout.css.scope-pseudo.enabled")
|
|||
|
||||
// :not needs to come at the end of the non-bit pseudo-class list, since
|
||||
// it doesn't actually get directly matched on in SelectorMatches.
|
||||
CSS_PSEUDO_CLASS(notPseudo, ":not", 0, "")
|
||||
CSS_PSEUDO_CLASS(negation, ":not", 0, "")
|
||||
|
||||
// :-moz-dir(ltr) and :-moz-dir(rtl) match elements whose resolved
|
||||
// directionality in the markup language is ltr or rtl respectively
|
||||
|
|
Загрузка…
Ссылка в новой задаче