mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename nsIAtom as nsAtom.
Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of nsISupports. This means that nsAtom is now a better name for it than nsIAtom.
This commit is contained in:
parent
55a37930b2
commit
7628c1236a
12 changed files with 12752 additions and 12752 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
//! A type to represent a namespace.
|
||||
|
||||
use gecko_bindings::structs::nsIAtom;
|
||||
use gecko_bindings::structs::nsAtom;
|
||||
use precomputed_hash::PrecomputedHash;
|
||||
use std::borrow::Borrow;
|
||||
use std::fmt;
|
||||
|
@ -76,7 +76,7 @@ impl Borrow<WeakNamespace> for Namespace {
|
|||
impl WeakNamespace {
|
||||
/// Trivially construct a WeakNamespace.
|
||||
#[inline]
|
||||
pub unsafe fn new<'a>(atom: *mut nsIAtom) -> &'a Self {
|
||||
pub unsafe fn new<'a>(atom: *mut nsAtom) -> &'a Self {
|
||||
&*(atom as *const WeakNamespace)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue