зеркало из https://github.com/mozilla/gecko-dev.git
d7bfa8a3bb
Currently, NAC always inherits from the closest non-NAC ancestor element, regardless of whether it is for an element-backed pseudo or not. This patch changes the inheritance so that for element-backed pseudos, we inherit from the closest native anonymous root's parent, and for other NAC we inherit from the parent. This prevents the following two issues and allows us to remove the NODE_IS_NATIVE_ANONYMOUS flag: * Avoiding inheriting from the non-NAC ancestor in XBL bindings bound to NAC. - This is no longer a problem since we apply the rule only if we're a pseudo-element, and all pseudo-elements are in native anonymous subtrees. - This also allows to remove the hack that propagates the NODE_IS_NATIVE_ANONYMOUS flag from the ::cue pseudo-element from BindToTree. * Inheriting from the wrong thing if we're a nested NAC subtree. - We no longer look past our NAC subtree, with the exception of ::-moz-number-text's pseudo-elements, for which we do want to propagate ::placeholder to. A few rules from forms.css have been modified because they're useless or needed to propagate stuff to the anonymous form control in input[type="number"] which previously inherited from the input itself. MozReview-Commit-ID: IDKYt3EJtSH |
||
---|---|---|
.. | ||
accessiblecaret-normal@1.5x.png | ||
accessiblecaret-normal@1x.png | ||
accessiblecaret-normal@2.25x.png | ||
accessiblecaret-normal@2x.png | ||
accessiblecaret-tilt-left@1.5x.png | ||
accessiblecaret-tilt-left@1x.png | ||
accessiblecaret-tilt-left@2.25x.png | ||
accessiblecaret-tilt-left@2x.png | ||
accessiblecaret-tilt-right@1.5x.png | ||
accessiblecaret-tilt-right@1x.png | ||
accessiblecaret-tilt-right@2.25x.png | ||
accessiblecaret-tilt-right@2x.png | ||
arrow-left.gif | ||
arrow-right.gif | ||
arrow.gif | ||
arrowd-left.gif | ||
arrowd-right.gif | ||
arrowd.gif | ||
counterstyles.css | ||
forms.css | ||
html.css | ||
noframes.css | ||
noscript.css | ||
plaintext.css | ||
quirk.css | ||
ua.css | ||
viewsource.css |