mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #16877 - bzbarsky:moz-anonymous-content, r=emilio
Implement :-moz-anonymous-content in stylo <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix https://bugzilla.mozilla.org/show_bug.cgi?id=1364591 <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because they're tested by Gecko tests. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16877) <!-- Reviewable:end -->
This commit is contained in:
commit
a51da06dd9
3 changed files with 4 additions and 5 deletions
|
@ -26,8 +26,6 @@
|
|||
* Pending pseudo-classes:
|
||||
*
|
||||
* :-moz-is-html -> Used only in UA sheets, should be easy to support.
|
||||
* :-moz-native-anonymous -> For devtools, seems easy-ish?
|
||||
* :-moz-bound-element -> Seems unused, should be easy to remove.
|
||||
*
|
||||
* :-moz-lwtheme, :-moz-lwtheme-brighttext, :-moz-lwtheme-darktext,
|
||||
* :-moz-window-inactive.
|
||||
|
@ -109,7 +107,7 @@ macro_rules! apply_non_ts_list {
|
|||
("-moz-first-node", MozFirstNode, firstNode, _, _),
|
||||
("-moz-last-node", MozLastNode, lastNode, _, _),
|
||||
("-moz-only-whitespace", MozOnlyWhitespace, mozOnlyWhitespace, _, _),
|
||||
|
||||
("-moz-native-anonymous", MozNativeAnonymous, mozNativeAnonymous, _, PSEUDO_CLASS_INTERNAL),
|
||||
],
|
||||
string: [
|
||||
("-moz-system-metric", MozSystemMetric, mozSystemMetric, _, PSEUDO_CLASS_INTERNAL),
|
||||
|
|
|
@ -1218,7 +1218,8 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
true
|
||||
}
|
||||
NonTSPseudoClass::MozTableBorderNonzero |
|
||||
NonTSPseudoClass::MozBrowserFrame => unsafe {
|
||||
NonTSPseudoClass::MozBrowserFrame |
|
||||
NonTSPseudoClass::MozNativeAnonymous => unsafe {
|
||||
Gecko_MatchesElement(pseudo_class.to_gecko_pseudoclasstype().unwrap(), self.0)
|
||||
},
|
||||
NonTSPseudoClass::MozAny(ref sels) => {
|
||||
|
|
|
@ -176,7 +176,7 @@ fn element_matches_candidate<E: TElement>(element: &E,
|
|||
miss!(State)
|
||||
}
|
||||
|
||||
if element.get_id().is_some() {
|
||||
if element.get_id() != candidate_element.get_id() {
|
||||
miss!(IdAttr)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue