mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
stylo: Read mName as a raw nsIAtom* from NodeInfoInner.
This commit is contained in:
parent
4f0821192c
commit
aeb2b8b098
2 changed files with 2 additions and 2 deletions
|
@ -1665,7 +1665,7 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
|
||||
fn get_local_name(&self) -> &WeakAtom {
|
||||
unsafe {
|
||||
WeakAtom::new(self.as_node().node_info().mInner.mName.raw::<nsIAtom>())
|
||||
WeakAtom::new(self.as_node().node_info().mInner.mName)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ unsafe impl Sync for WeakAtom {}
|
|||
impl WeakAtom {
|
||||
/// Construct a `WeakAtom` from a raw `nsIAtom`.
|
||||
#[inline]
|
||||
pub unsafe fn new<'a>(atom: *mut nsIAtom) -> &'a mut Self {
|
||||
pub unsafe fn new<'a>(atom: *const nsIAtom) -> &'a mut Self {
|
||||
&mut *(atom as *mut WeakAtom)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue