aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/gecko')
-rw-r--r--components/style/gecko/generated/bindings.rs8
-rw-r--r--components/style/gecko/generated/structs_debug.rs57
-rw-r--r--components/style/gecko/generated/structs_release.rs57
3 files changed, 118 insertions, 4 deletions
diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs
index 6a5dca5eab2..028b4678c3f 100644
--- a/components/style/gecko/generated/bindings.rs
+++ b/components/style/gecko/generated/bindings.rs
@@ -80,6 +80,9 @@ unsafe impl Sync for nsStyleContent {}
use gecko_bindings::structs::nsStyleContentData;
unsafe impl Send for nsStyleContentData {}
unsafe impl Sync for nsStyleContentData {}
+use gecko_bindings::structs::nsStyleContentData_CounterFunction;
+unsafe impl Send for nsStyleContentData_CounterFunction {}
+unsafe impl Sync for nsStyleContentData_CounterFunction {}
use gecko_bindings::structs::nsStyleContentType;
unsafe impl Send for nsStyleContentType {}
unsafe impl Sync for nsStyleContentType {}
@@ -919,8 +922,9 @@ extern "C" {
aImageValue: *mut ImageValue);
}
extern "C" {
- pub fn Gecko_SetContentDataArray(content_data: *mut nsStyleContentData,
- type_: nsStyleContentType, len: u32);
+ pub fn Gecko_SetCounterFunction(content_data: *mut nsStyleContentData,
+ type_: nsStyleContentType)
+ -> *mut nsStyleContentData_CounterFunction;
}
extern "C" {
pub fn Gecko_GetNodeFlags(node: RawGeckoNodeBorrowed) -> u32;
diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs
index 8de6cba9c00..8b67bd48b74 100644
--- a/components/style/gecko/generated/structs_debug.rs
+++ b/components/style/gecko/generated/structs_debug.rs
@@ -32010,11 +32010,66 @@ pub mod root {
pub mContent: root::nsStyleContentData__bindgen_ty_1,
}
#[repr(C)]
+ #[derive(Debug)]
+ pub struct nsStyleContentData_CounterFunction {
+ pub mIdent: ::nsstring::nsStringRepr,
+ pub mSeparator: ::nsstring::nsStringRepr,
+ pub mCounterStyle: root::mozilla::CounterStylePtr,
+ pub mCounterStyleName: root::nsCOMPtr<root::nsIAtom>,
+ pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt,
+ }
+ pub type nsStyleContentData_CounterFunction_HasThreadSafeRefCnt =
+ root::mozilla::TrueType;
+ #[test]
+ fn bindgen_test_layout_nsStyleContentData_CounterFunction() {
+ assert_eq!(::std::mem::size_of::<nsStyleContentData_CounterFunction>()
+ , 56usize , concat ! (
+ "Size of: " , stringify ! (
+ nsStyleContentData_CounterFunction ) ));
+ assert_eq! (::std::mem::align_of::<nsStyleContentData_CounterFunction>()
+ , 8usize , concat ! (
+ "Alignment of " , stringify ! (
+ nsStyleContentData_CounterFunction ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const nsStyleContentData_CounterFunction )
+ ) . mIdent as * const _ as usize } , 0usize , concat ! (
+ "Alignment of field: " , stringify ! (
+ nsStyleContentData_CounterFunction ) , "::" , stringify !
+ ( mIdent ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const nsStyleContentData_CounterFunction )
+ ) . mSeparator as * const _ as usize } , 16usize , concat
+ ! (
+ "Alignment of field: " , stringify ! (
+ nsStyleContentData_CounterFunction ) , "::" , stringify !
+ ( mSeparator ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const nsStyleContentData_CounterFunction )
+ ) . mCounterStyle as * const _ as usize } , 32usize ,
+ concat ! (
+ "Alignment of field: " , stringify ! (
+ nsStyleContentData_CounterFunction ) , "::" , stringify !
+ ( mCounterStyle ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const nsStyleContentData_CounterFunction )
+ ) . mCounterStyleName as * const _ as usize } , 40usize ,
+ concat ! (
+ "Alignment of field: " , stringify ! (
+ nsStyleContentData_CounterFunction ) , "::" , stringify !
+ ( mCounterStyleName ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const nsStyleContentData_CounterFunction )
+ ) . mRefCnt as * const _ as usize } , 48usize , concat ! (
+ "Alignment of field: " , stringify ! (
+ nsStyleContentData_CounterFunction ) , "::" , stringify !
+ ( mRefCnt ) ));
+ }
+ #[repr(C)]
#[derive(Debug, Copy)]
pub struct nsStyleContentData__bindgen_ty_1 {
pub mString: root::__BindgenUnionField<*mut u16>,
pub mImage: root::__BindgenUnionField<*mut root::nsStyleImageRequest>,
- pub mCounters: root::__BindgenUnionField<*mut root::nsCSSValue_Array>,
+ pub mCounters: root::__BindgenUnionField<*mut root::nsStyleContentData_CounterFunction>,
pub bindgen_union_field: u64,
}
#[test]
diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs
index c8d937faa5b..df90efe3af6 100644
--- a/components/style/gecko/generated/structs_release.rs
+++ b/components/style/gecko/generated/structs_release.rs
@@ -31499,11 +31499,66 @@ pub mod root {
pub mContent: root::nsStyleContentData__bindgen_ty_1,
}
#[repr(C)]
+ #[derive(Debug)]
+ pub struct nsStyleContentData_CounterFunction {
+ pub mIdent: ::nsstring::nsStringRepr,
+ pub mSeparator: ::nsstring::nsStringRepr,
+ pub mCounterStyle: root::mozilla::CounterStylePtr,
+ pub mCounterStyleName: root::nsCOMPtr,
+ pub mRefCnt: root::mozilla::ThreadSafeAutoRefCnt,
+ }
+ pub type nsStyleContentData_CounterFunction_HasThreadSafeRefCnt =
+ root::mozilla::TrueType;
+ #[test]
+ fn bindgen_test_layout_nsStyleContentData_CounterFunction() {
+ assert_eq!(::std::mem::size_of::<nsStyleContentData_CounterFunction>()
+ , 56usize , concat ! (
+ "Size of: " , stringify ! (
+ nsStyleContentData_CounterFunction ) ));
+ assert_eq! (::std::mem::align_of::<nsStyleContentData_CounterFunction>()
+ , 8usize , concat ! (
+ "Alignment of " , stringify ! (
+ nsStyleContentData_CounterFunction ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const nsStyleContentData_CounterFunction )
+ ) . mIdent as * const _ as usize } , 0usize , concat ! (
+ "Alignment of field: " , stringify ! (
+ nsStyleContentData_CounterFunction ) , "::" , stringify !
+ ( mIdent ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const nsStyleContentData_CounterFunction )
+ ) . mSeparator as * const _ as usize } , 16usize , concat
+ ! (
+ "Alignment of field: " , stringify ! (
+ nsStyleContentData_CounterFunction ) , "::" , stringify !
+ ( mSeparator ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const nsStyleContentData_CounterFunction )
+ ) . mCounterStyle as * const _ as usize } , 32usize ,
+ concat ! (
+ "Alignment of field: " , stringify ! (
+ nsStyleContentData_CounterFunction ) , "::" , stringify !
+ ( mCounterStyle ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const nsStyleContentData_CounterFunction )
+ ) . mCounterStyleName as * const _ as usize } , 40usize ,
+ concat ! (
+ "Alignment of field: " , stringify ! (
+ nsStyleContentData_CounterFunction ) , "::" , stringify !
+ ( mCounterStyleName ) ));
+ assert_eq! (unsafe {
+ & ( * ( 0 as * const nsStyleContentData_CounterFunction )
+ ) . mRefCnt as * const _ as usize } , 48usize , concat ! (
+ "Alignment of field: " , stringify ! (
+ nsStyleContentData_CounterFunction ) , "::" , stringify !
+ ( mRefCnt ) ));
+ }
+ #[repr(C)]
#[derive(Debug, Copy)]
pub struct nsStyleContentData__bindgen_ty_1 {
pub mString: root::__BindgenUnionField<*mut u16>,
pub mImage: root::__BindgenUnionField<*mut root::nsStyleImageRequest>,
- pub mCounters: root::__BindgenUnionField<*mut root::nsCSSValue_Array>,
+ pub mCounters: root::__BindgenUnionField<*mut root::nsStyleContentData_CounterFunction>,
pub bindgen_union_field: u64,
}
#[test]