Auto merge of #21357 - emilio:gecko-sync, r=emilio

style: Sync changes from mozilla-central.

See each individual commit.

<!-- 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/21357)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-08-07 20:27:24 -04:00 committed by GitHub
commit ea86eb64be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 899 additions and 438 deletions

View file

@ -2640,14 +2640,6 @@ impl<'a> SelectorsElement for DomRoot<Element> {
false
}
fn first_child_element(&self) -> Option<DomRoot<Element>> {
self.node.child_elements().next()
}
fn last_child_element(&self) -> Option<DomRoot<Element>> {
self.node.rev_children().filter_map(DomRoot::downcast).next()
}
fn prev_sibling_element(&self) -> Option<DomRoot<Element>> {
self.node.preceding_siblings().filter_map(DomRoot::downcast).next()
}