mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
Remove get_attrs from TElement.
This should just be a helper.
This commit is contained in:
parent
a0c425fbef
commit
7947afc699
3 changed files with 7 additions and 15 deletions
|
@ -369,11 +369,6 @@ impl<'le> TElement for GeckoElement<'le> {
|
|||
reinterpret_string(ptr, length)
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn get_attrs<'a>(&'a self, _name: &Atom) -> Vec<&'a str> {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
||||
impl<'le> PresentationalHintsSynthetizer for GeckoElement<'le> {
|
||||
|
@ -519,7 +514,9 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
self.get_attr(ns, name).map_or(false, |attr| test(attr))
|
||||
},
|
||||
NamespaceConstraint::Any => {
|
||||
self.get_attrs(name).iter().any(|attr| test(*attr))
|
||||
// We should probably pass the atom into gecko and let it match
|
||||
// against attributes across namespaces.
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue