mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update gecko bindings
This commit is contained in:
parent
7f5d62c24d
commit
ebfb18c1b5
1 changed files with 9 additions and 1 deletions
|
@ -9306,10 +9306,11 @@ pub mod root {
|
|||
pub mProperty: root::nsCSSPropertyID,
|
||||
pub mValue: root::nsCSSValue,
|
||||
pub mServoDeclarationBlock: root::RefPtr<root::RawServoDeclarationBlock>,
|
||||
pub mSimulateComputeValuesFailure: bool,
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_PropertyValuePair() {
|
||||
assert_eq!(::std::mem::size_of::<PropertyValuePair>() , 32usize ,
|
||||
assert_eq!(::std::mem::size_of::<PropertyValuePair>() , 40usize ,
|
||||
concat ! (
|
||||
"Size of: " , stringify ! ( PropertyValuePair ) ));
|
||||
assert_eq! (::std::mem::align_of::<PropertyValuePair>() , 8usize ,
|
||||
|
@ -9335,6 +9336,13 @@ pub mod root {
|
|||
"Alignment of field: " , stringify ! (
|
||||
PropertyValuePair ) , "::" , stringify ! (
|
||||
mServoDeclarationBlock ) ));
|
||||
assert_eq! (unsafe {
|
||||
& ( * ( 0 as * const PropertyValuePair ) ) .
|
||||
mSimulateComputeValuesFailure as * const _ as usize }
|
||||
, 32usize , concat ! (
|
||||
"Alignment of field: " , stringify ! (
|
||||
PropertyValuePair ) , "::" , stringify ! (
|
||||
mSimulateComputeValuesFailure ) ));
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue