diff options
author | Xidorn Quan <me@upsuper.org> | 2018-02-14 10:37:13 +1100 |
---|---|---|
committer | Xidorn Quan <me@upsuper.org> | 2018-02-14 11:15:58 +1100 |
commit | 6ffa888dd6395aedf39a738145a99c2309f1518e (patch) | |
tree | 2f27c384166c759b5798bf57453fc338a28e9653 /components/style/gecko/generated/structs.rs | |
parent | 4c3f1756da1373e9eef33716c9a93b0bb0559241 (diff) | |
download | servo-6ffa888dd6395aedf39a738145a99c2309f1518e.tar.gz servo-6ffa888dd6395aedf39a738145a99c2309f1518e.zip |
Integrate font-variation-settings descriptor with stylo
Diffstat (limited to 'components/style/gecko/generated/structs.rs')
-rw-r--r-- | components/style/gecko/generated/structs.rs | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/components/style/gecko/generated/structs.rs b/components/style/gecko/generated/structs.rs index 446ffa19fb4..5762d067e28 100644 --- a/components/style/gecko/generated/structs.rs +++ b/components/style/gecko/generated/structs.rs @@ -10231,6 +10231,10 @@ pub mod root { pub static mut StylePrefs_sGridTemplateSubgridValueEnabled: bool; } extern "C" { + #[link_name = "\u{1}_ZN7mozilla10StylePrefs22sFontVariationsEnabledE"] + pub static mut StylePrefs_sFontVariationsEnabled: bool; + } + extern "C" { #[link_name = "\u{1}_ZN7mozilla10StylePrefs22sEmulateMozBoxWithFlexE"] pub static mut StylePrefs_sEmulateMozBoxWithFlex: bool; } @@ -11885,6 +11889,7 @@ pub mod root { pub mSrc: root::nsCSSValue, pub mUnicodeRange: root::nsCSSValue, pub mFontFeatureSettings: root::nsCSSValue, + pub mFontVariationSettings: root::nsCSSValue, pub mFontLanguageOverride: root::nsCSSValue, pub mDisplay: root::nsCSSValue, } @@ -11896,7 +11901,7 @@ pub mod root { fn bindgen_test_layout_CSSFontFaceDescriptors() { assert_eq!( ::std::mem::size_of::<CSSFontFaceDescriptors>(), - 144usize, + 160usize, concat!("Size of: ", stringify!(CSSFontFaceDescriptors)) ); assert_eq!( @@ -11992,7 +11997,7 @@ pub mod root { ); assert_eq!( unsafe { - &(*(::std::ptr::null::<CSSFontFaceDescriptors>())).mFontLanguageOverride + &(*(::std::ptr::null::<CSSFontFaceDescriptors>())).mFontVariationSettings as *const _ as usize }, 112usize, @@ -12000,6 +12005,19 @@ pub mod root { "Offset of field: ", stringify!(CSSFontFaceDescriptors), "::", + stringify!(mFontVariationSettings) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<CSSFontFaceDescriptors>())).mFontLanguageOverride + as *const _ as usize + }, + 128usize, + concat!( + "Offset of field: ", + stringify!(CSSFontFaceDescriptors), + "::", stringify!(mFontLanguageOverride) ) ); @@ -12007,7 +12025,7 @@ pub mod root { unsafe { &(*(::std::ptr::null::<CSSFontFaceDescriptors>())).mDisplay as *const _ as usize }, - 128usize, + 144usize, concat!( "Offset of field: ", stringify!(CSSFontFaceDescriptors), @@ -21749,9 +21767,10 @@ pub mod root { eCSSFontDesc_Src = 4, eCSSFontDesc_UnicodeRange = 5, eCSSFontDesc_FontFeatureSettings = 6, - eCSSFontDesc_FontLanguageOverride = 7, - eCSSFontDesc_Display = 8, - eCSSFontDesc_COUNT = 9, + eCSSFontDesc_FontVariationSettings = 7, + eCSSFontDesc_FontLanguageOverride = 8, + eCSSFontDesc_Display = 9, + eCSSFontDesc_COUNT = 10, } #[repr(i32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] @@ -37537,7 +37556,7 @@ pub mod root { fn bindgen_test_layout_nsCSSFontFaceStyleDecl() { assert_eq!( ::std::mem::size_of::<nsCSSFontFaceStyleDecl>(), - 176usize, + 192usize, concat!("Size of: ", stringify!(nsCSSFontFaceStyleDecl)) ); assert_eq!( @@ -37599,7 +37618,7 @@ pub mod root { fn bindgen_test_layout_nsCSSFontFaceRule() { assert_eq!( ::std::mem::size_of::<nsCSSFontFaceRule>(), - 240usize, + 256usize, concat!("Size of: ", stringify!(nsCSSFontFaceRule)) ); assert_eq!( |