Remove get_attrs from TElement.

This should just be a helper.
This commit is contained in:
Bobby Holley 2016-06-23 14:06:19 -07:00
parent a0c425fbef
commit 7947afc699
3 changed files with 7 additions and 15 deletions

View file

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