From b03867da5da0041c3fd3ec98c2e037e30c5c8f43 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Fri, 2 Jun 2017 14:39:13 -0500 Subject: [PATCH] Update bindings --- components/style/gecko/generated/bindings.rs | 15 +++++++ .../style/gecko/generated/structs_debug.rs | 44 +++++++++---------- .../style/gecko/generated/structs_release.rs | 44 +++++++++---------- 3 files changed, 55 insertions(+), 48 deletions(-) diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs index 0b5a0098202..f08d4b50f2d 100644 --- a/components/style/gecko/generated/bindings.rs +++ b/components/style/gecko/generated/bindings.rs @@ -694,6 +694,21 @@ extern "C" { RawGeckoElementBorrowed) -> RawServoDeclarationBlockStrongBorrowedOrNull; } +extern "C" { + pub fn Gecko_GetUnvisitedLinkAttrDeclarationBlock(element: + RawGeckoElementBorrowed) + -> RawServoDeclarationBlockStrongBorrowedOrNull; +} +extern "C" { + pub fn Gecko_GetVisitedLinkAttrDeclarationBlock(element: + RawGeckoElementBorrowed) + -> RawServoDeclarationBlockStrongBorrowedOrNull; +} +extern "C" { + pub fn Gecko_GetActiveLinkAttrDeclarationBlock(element: + RawGeckoElementBorrowed) + -> RawServoDeclarationBlockStrongBorrowedOrNull; +} extern "C" { pub fn Gecko_GetAnimationRule(aElementOrPseudo: RawGeckoElementBorrowed, aCascadeLevel: diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index 860d6904ff0..f324c31dd54 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -800,6 +800,11 @@ pub mod root { 4; pub const NS_STYLE_CONTEXT_PROPERTY_FILL: ::std::os::raw::c_uint = 1; pub const NS_STYLE_CONTEXT_PROPERTY_STROKE: ::std::os::raw::c_uint = 2; + pub const NS_STYLE_CONTEXT_PROPERTY_FILL_OPACITY: ::std::os::raw::c_uint = + 4; + pub const NS_STYLE_CONTEXT_PROPERTY_STROKE_OPACITY: ::std::os::raw::c_uint + = + 8; pub const NS_STYLE_WINDOW_SHADOW_NONE: ::std::os::raw::c_uint = 0; pub const NS_STYLE_WINDOW_SHADOW_DEFAULT: ::std::os::raw::c_uint = 1; pub const NS_STYLE_WINDOW_SHADOW_MENU: ::std::os::raw::c_uint = 2; @@ -3673,9 +3678,20 @@ pub mod root { _unused: [u8; 0], } #[repr(C)] - #[derive(Debug, Copy, Clone)] + #[derive(Debug)] pub struct EventHandlerNonNull { - _unused: [u8; 0], + pub _base: root::mozilla::dom::CallbackFunction, + } + #[test] + fn bindgen_test_layout_EventHandlerNonNull() { + assert_eq!(::std::mem::size_of::() , + 56usize , concat ! ( + "Size of: " , stringify ! ( EventHandlerNonNull ) + )); + assert_eq! (::std::mem::align_of::() , + 8usize , concat ! ( + "Alignment of " , stringify ! ( + EventHandlerNonNull ) )); } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -14866,26 +14882,6 @@ pub mod root { pub struct nsIPrincipal_COMTypeInfo { pub _address: u8, } - pub const nsIPrincipal_APP_STATUS_NOT_INSTALLED: - root::nsIPrincipal__bindgen_ty_1 = - nsIPrincipal__bindgen_ty_1::APP_STATUS_NOT_INSTALLED; - pub const nsIPrincipal_APP_STATUS_INSTALLED: - root::nsIPrincipal__bindgen_ty_1 = - nsIPrincipal__bindgen_ty_1::APP_STATUS_INSTALLED; - pub const nsIPrincipal_APP_STATUS_PRIVILEGED: - root::nsIPrincipal__bindgen_ty_1 = - nsIPrincipal__bindgen_ty_1::APP_STATUS_PRIVILEGED; - pub const nsIPrincipal_APP_STATUS_CERTIFIED: - root::nsIPrincipal__bindgen_ty_1 = - nsIPrincipal__bindgen_ty_1::APP_STATUS_CERTIFIED; - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPrincipal__bindgen_ty_1 { - APP_STATUS_NOT_INSTALLED = 0, - APP_STATUS_INSTALLED = 1, - APP_STATUS_PRIVILEGED = 2, - APP_STATUS_CERTIFIED = 3, - } #[test] fn bindgen_test_layout_nsIPrincipal() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( @@ -33529,7 +33525,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_203478_instantiation_99() { + fn __bindgen_test_layout__bindgen_ty_id_211393_instantiation_99() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -33538,7 +33534,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_203514_instantiation_100() { + fn __bindgen_test_layout__bindgen_ty_id_211429_instantiation_100() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs index f3257a71868..608da5aa217 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -800,6 +800,11 @@ pub mod root { 4; pub const NS_STYLE_CONTEXT_PROPERTY_FILL: ::std::os::raw::c_uint = 1; pub const NS_STYLE_CONTEXT_PROPERTY_STROKE: ::std::os::raw::c_uint = 2; + pub const NS_STYLE_CONTEXT_PROPERTY_FILL_OPACITY: ::std::os::raw::c_uint = + 4; + pub const NS_STYLE_CONTEXT_PROPERTY_STROKE_OPACITY: ::std::os::raw::c_uint + = + 8; pub const NS_STYLE_WINDOW_SHADOW_NONE: ::std::os::raw::c_uint = 0; pub const NS_STYLE_WINDOW_SHADOW_DEFAULT: ::std::os::raw::c_uint = 1; pub const NS_STYLE_WINDOW_SHADOW_MENU: ::std::os::raw::c_uint = 2; @@ -3571,9 +3576,20 @@ pub mod root { _unused: [u8; 0], } #[repr(C)] - #[derive(Debug, Copy, Clone)] + #[derive(Debug)] pub struct EventHandlerNonNull { - _unused: [u8; 0], + pub _base: root::mozilla::dom::CallbackFunction, + } + #[test] + fn bindgen_test_layout_EventHandlerNonNull() { + assert_eq!(::std::mem::size_of::() , + 48usize , concat ! ( + "Size of: " , stringify ! ( EventHandlerNonNull ) + )); + assert_eq! (::std::mem::align_of::() , + 8usize , concat ! ( + "Alignment of " , stringify ! ( + EventHandlerNonNull ) )); } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -14521,26 +14537,6 @@ pub mod root { pub struct nsIPrincipal_COMTypeInfo { pub _address: u8, } - pub const nsIPrincipal_APP_STATUS_NOT_INSTALLED: - root::nsIPrincipal__bindgen_ty_1 = - nsIPrincipal__bindgen_ty_1::APP_STATUS_NOT_INSTALLED; - pub const nsIPrincipal_APP_STATUS_INSTALLED: - root::nsIPrincipal__bindgen_ty_1 = - nsIPrincipal__bindgen_ty_1::APP_STATUS_INSTALLED; - pub const nsIPrincipal_APP_STATUS_PRIVILEGED: - root::nsIPrincipal__bindgen_ty_1 = - nsIPrincipal__bindgen_ty_1::APP_STATUS_PRIVILEGED; - pub const nsIPrincipal_APP_STATUS_CERTIFIED: - root::nsIPrincipal__bindgen_ty_1 = - nsIPrincipal__bindgen_ty_1::APP_STATUS_CERTIFIED; - #[repr(u32)] - #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] - pub enum nsIPrincipal__bindgen_ty_1 { - APP_STATUS_NOT_INSTALLED = 0, - APP_STATUS_INSTALLED = 1, - APP_STATUS_PRIVILEGED = 2, - APP_STATUS_CERTIFIED = 3, - } #[test] fn bindgen_test_layout_nsIPrincipal() { assert_eq!(::std::mem::size_of::() , 8usize , concat ! ( @@ -33009,7 +33005,7 @@ pub mod root { root::nsCharTraits ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_199539_instantiation_97() { + fn __bindgen_test_layout__bindgen_ty_id_207717_instantiation_97() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) )); @@ -33018,7 +33014,7 @@ pub mod root { ) )); } #[test] - fn __bindgen_test_layout__bindgen_ty_id_199575_instantiation_98() { + fn __bindgen_test_layout__bindgen_ty_id_207753_instantiation_98() { assert_eq!(::std::mem::size_of::() , 1usize , concat ! ( "Size of template specialization: " , stringify ! ( u8 ) ));