mirror of
https://github.com/servo/servo.git
synced 2025-08-23 06:15:35 +01:00
update embedding interfaces again to use filling_drop feature
...and remove trailing whitespaces
This commit is contained in:
parent
efb2b37185
commit
745e3bd49f
57 changed files with 2797 additions and 1550 deletions
|
@ -66,7 +66,7 @@ macro_rules! full_cef_class_impl(
|
|||
// Calculate the offset of the reference count. This is the size of the
|
||||
// structure.
|
||||
let null: *const $c_interface_name = ::std::ptr::null();
|
||||
let offset: *const usize = &(*null).ref_count;
|
||||
let offset: *const u32 = &(*null).ref_count;
|
||||
let size = (offset as ::libc::size_t) - (null as ::libc::size_t);
|
||||
$interface_name::from_c_object_addref(
|
||||
::eutil::create_cef_object::<$c_interface_name,$class_name>(size))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue