aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko/generated/structs_release.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/gecko/generated/structs_release.rs')
-rw-r--r--components/style/gecko/generated/structs_release.rs14
1 files changed, 13 insertions, 1 deletions
diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs
index 0c495d5cbd6..12839bf225f 100644
--- a/components/style/gecko/generated/structs_release.rs
+++ b/components/style/gecko/generated/structs_release.rs
@@ -2102,7 +2102,8 @@ pub mod root {
#[repr(C)]
#[derive(Debug, Copy)]
pub struct FontVariation {
- pub _bindgen_opaque_blob: [u32; 2usize],
+ pub mTag: u32,
+ pub mValue: f32,
}
#[test]
fn bindgen_test_layout_FontVariation() {
@@ -2113,6 +2114,17 @@ pub mod root {
concat ! (
"Alignment of " , stringify ! ( FontVariation )
));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const FontVariation ) ) . mTag as *
+ const _ as usize } , 0usize , concat ! (
+ "Alignment of field: " , stringify ! (
+ FontVariation ) , "::" , stringify ! ( mTag ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const FontVariation ) ) . mValue as
+ * const _ as usize } , 4usize , concat ! (
+ "Alignment of field: " , stringify ! (
+ FontVariation ) , "::" , stringify ! ( mValue )
+ ));
}
impl Clone for FontVariation {
fn clone(&self) -> Self { *self }