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:
Boris Chiou 2016-04-22 22:09:20 +08:00
Родитель 66ed914313
Коммит 4487e71e34
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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