зеркало из https://github.com/mozilla/gecko-dev.git
Bug 930020 - Part 2: Use flag to hide <input type=number> pseudo-elements from content. r=bz
This commit is contained in:
Родитель
1c6e168631
Коммит
422b24f3ea
|
@ -3672,18 +3672,6 @@ CSSParserImpl::ParsePseudoSelector(int32_t& aDataMask,
|
|||
return eSelectorParsingStatus_Error;
|
||||
}
|
||||
|
||||
if (!mUnsafeRulesEnabled &&
|
||||
(pseudoElementType == nsCSSPseudoElements::ePseudo_mozNumberWrapper ||
|
||||
pseudoElementType == nsCSSPseudoElements::ePseudo_mozNumberText ||
|
||||
pseudoElementType == nsCSSPseudoElements::ePseudo_mozNumberSpinBox ||
|
||||
pseudoElementType == nsCSSPseudoElements::ePseudo_mozNumberSpinUp ||
|
||||
pseudoElementType == nsCSSPseudoElements::ePseudo_mozNumberSpinDown)) {
|
||||
// Hide these pseudo-elements from content until we standardize them.
|
||||
REPORT_UNEXPECTED_TOKEN(PEPseudoSelUnknown);
|
||||
UngetToken();
|
||||
return eSelectorParsingStatus_Error;
|
||||
}
|
||||
|
||||
// We currently allow :-moz-placeholder and ::-moz-placeholder. We have to
|
||||
// be a bit stricter regarding the pseudo-element parsing rules.
|
||||
if (pseudoElementType == nsCSSPseudoElements::ePseudo_mozPlaceholder &&
|
||||
|
|
|
@ -53,15 +53,20 @@ CSS_PSEUDO_ELEMENT(mozMathAnonymous, ":-moz-math-anonymous", 0)
|
|||
|
||||
// HTML5 Forms pseudo elements
|
||||
CSS_PSEUDO_ELEMENT(mozNumberWrapper, ":-moz-number-wrapper",
|
||||
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
|
||||
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE |
|
||||
CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY)
|
||||
CSS_PSEUDO_ELEMENT(mozNumberText, ":-moz-number-text",
|
||||
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
|
||||
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE |
|
||||
CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY)
|
||||
CSS_PSEUDO_ELEMENT(mozNumberSpinBox, ":-moz-number-spin-box",
|
||||
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
|
||||
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE |
|
||||
CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY)
|
||||
CSS_PSEUDO_ELEMENT(mozNumberSpinUp, ":-moz-number-spin-up",
|
||||
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
|
||||
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE |
|
||||
CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY)
|
||||
CSS_PSEUDO_ELEMENT(mozNumberSpinDown, ":-moz-number-spin-down",
|
||||
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
|
||||
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE |
|
||||
CSS_PSEUDO_ELEMENT_IS_CHROME_ONLY)
|
||||
CSS_PSEUDO_ELEMENT(mozProgressBar, ":-moz-progress-bar",
|
||||
CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE)
|
||||
CSS_PSEUDO_ELEMENT(mozRangeTrack, ":-moz-range-track",
|
||||
|
|
Загрузка…
Ссылка в новой задаче