mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Refactor geckolib atoms regen script
This commit is contained in:
parent
c834e57f4d
commit
fa06b922c7
2 changed files with 73 additions and 49 deletions
|
@ -3,21 +3,21 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* Autogenerated file, DO NOT EDIT DIRECTLY */
|
||||
use gecko_bindings::structs::nsIAtom;
|
||||
|
||||
use gecko_bindings::structs::nsIAtom;
|
||||
use string_cache::Atom;
|
||||
|
||||
pub enum nsICSSPseudoElement {}
|
||||
|
||||
pub enum nsICSSAnonBoxPseudo {}
|
||||
|
||||
|
||||
#[inline(always)] pub fn unsafe_atom_from_static(ptr: *mut nsIAtom) -> Atom {
|
||||
unsafe { Atom::from_static(ptr) }
|
||||
}
|
||||
#[inline(always)]
|
||||
pub fn unsafe_atom_from_static(ptr: *mut nsIAtom) -> Atom {
|
||||
unsafe { Atom::from_static(ptr) }
|
||||
}
|
||||
|
||||
|
||||
cfg_if! {
|
||||
cfg_if! {
|
||||
if #[cfg(not(target_env = "msvc"))] {
|
||||
extern {
|
||||
#[link_name = "_ZN9nsGkAtoms6_emptyE"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue