mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Look at nsIAtom.mHash directly rather than call Gecko_HashAtom.
This commit is contained in:
parent
ca26e95e44
commit
0bf1f2793b
7 changed files with 9 additions and 10 deletions
|
@ -24,7 +24,7 @@ with open(objdir_path + "/dist/include/nsGkAtomList.h") as f:
|
|||
atoms = [line_to_atom(line) for line in lines]
|
||||
|
||||
with open("atom_macro.rs", "w") as f:
|
||||
f.write("use gecko_bindings::bindings::nsIAtom;\n\n")
|
||||
f.write("use gecko_bindings::structs::nsIAtom;\n\n")
|
||||
f.write("use Atom;\n\n")
|
||||
f.write("pub fn unsafe_atom_from_static(ptr: *mut nsIAtom) -> Atom { unsafe { Atom::from_static(ptr) } }\n\n")
|
||||
for atom in atoms:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue