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:
bors-servo 2017-05-15 16:38:14 -05:00 committed by GitHub
commit a51da06dd9
3 changed files with 4 additions and 5 deletions

View file

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