mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
Remove get_attr from TElement. \o/
This commit is contained in:
parent
1d8d1cb9d9
commit
187a47d89d
3 changed files with 7 additions and 19 deletions
|
@ -380,16 +380,6 @@ impl<'le> TElement for GeckoElement<'le> {
|
|||
/* ignoreCase = */ false)
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn get_attr<'a>(&'a self, namespace: &Namespace, name: &Atom) -> Option<&'a str> {
|
||||
unsafe {
|
||||
let mut length: u32 = 0;
|
||||
let ptr = Gecko_GetAttrAsUTF8(self.element, namespace.0.as_ptr(), name.as_ptr(),
|
||||
&mut length);
|
||||
reinterpret_string(ptr, length)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'le> PresentationalHintsSynthetizer for GeckoElement<'le> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue