mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use cached element ID in LayoutElement::get_id
This commit is contained in:
parent
ea655ada10
commit
2e9d8a76d1
2 changed files with 9 additions and 1 deletions
|
@ -487,7 +487,7 @@ impl<'le> ::selectors::Element for LayoutElement<'le> {
|
|||
#[inline]
|
||||
fn get_id(&self) -> Option<Atom> {
|
||||
unsafe {
|
||||
(*self.element.unsafe_get()).get_attr_atom_for_layout(&ns!(""), &atom!("id"))
|
||||
(*self.element.id_attribute()).clone()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue