Fix Servo build.

This commit is contained in:
Emilio Cobos Álvarez 2018-08-08 01:10:03 +02:00
parent 6c5456b4b6
commit 689293e4fb
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
12 changed files with 24 additions and 42 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()
}