Bug 1439837: Hide ::-moz-math-anonymous from content. r=xidorn

See bug 1000879 for the last time the MathML pseudo-elements were touched. After
this I want to see if it's easy to remove completely, since it will also remove
the biggest usage of the AdditionalStyleContext API.

MozReview-Commit-ID: 60Z4oAwujsU
This commit is contained in:
Emilio Cobos Álvarez 2018-02-21 10:20:05 +01:00
parent af439c8f5d
commit 0ea28a9b9d
2 changed files with 8 additions and 2 deletions

View File

@ -56,7 +56,13 @@ CSS_PSEUDO_ELEMENT(mozFocusOuter, ":-moz-focus-outer", 0)
CSS_PSEUDO_ELEMENT(mozListBullet, ":-moz-list-bullet", 0)
CSS_PSEUDO_ELEMENT(mozListNumber, ":-moz-list-number", 0)
CSS_PSEUDO_ELEMENT(mozMathAnonymous, ":-moz-math-anonymous", 0)
// FIXME(emilio): It's unclear why this needs to exist at all, we don't ever
// style them.
//
// This is a pseudo instead of an anon box because of how the
// AdditionalStyleContext APIs work.
CSS_PSEUDO_ELEMENT(mozMathAnonymous, ":-moz-math-anonymous",
CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS)
// HTML5 Forms pseudo elements
CSS_PSEUDO_ELEMENT(mozNumberWrapper, ":-moz-number-wrapper",

View File

@ -9,7 +9,7 @@ const NON_CONTENT_ACCESIBLE_PSEUDOS = [
"::-moz-number-spin-down",
"::-moz-number-spin-box",
"::-moz-number-text",
// FIXME: probably ::-moz-math-anonymous should be on this list...
"::-moz-math-anonymous",
":-moz-native-anonymous",
":-moz-use-shadow-tree-root",