mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Remove unused selectors methods.
Differential Revision: https://phabricator.services.mozilla.com/D2767
This commit is contained in:
parent
489e224cb6
commit
bbcd7e414a
3 changed files with 0 additions and 40 deletions
|
@ -1957,30 +1957,6 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
unsafe { Some(GeckoElement(&slot.as_ref()?._base._base._base._base)) }
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn first_child_element(&self) -> Option<Self> {
|
||||
let mut child = self.as_node().first_child();
|
||||
while let Some(child_node) = child {
|
||||
if let Some(el) = child_node.as_element() {
|
||||
return Some(el);
|
||||
}
|
||||
child = child_node.next_sibling();
|
||||
}
|
||||
None
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn last_child_element(&self) -> Option<Self> {
|
||||
let mut child = self.as_node().last_child();
|
||||
while let Some(child_node) = child {
|
||||
if let Some(el) = child_node.as_element() {
|
||||
return Some(el);
|
||||
}
|
||||
child = child_node.prev_sibling();
|
||||
}
|
||||
None
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn prev_sibling_element(&self) -> Option<Self> {
|
||||
let mut sibling = self.as_node().prev_sibling();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue