diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs index 930f751567dd..a2d07200879b 100644 --- a/components/style/build_gecko.rs +++ b/components/style/build_gecko.rs @@ -415,7 +415,6 @@ mod bindings { // for clang. "nsPIDOMWindow", // <- Takes the vtable from a template parameter, and we can't // generate it conditionally. - "RawGeckoPresContext", // Just passing it through. "JS::Rooted", "mozilla::Maybe", "gfxSize", // <- union { struct { T width; T height; }; T components[2] }; diff --git a/components/style/gecko_bindings/structs_debug.rs b/components/style/gecko_bindings/structs_debug.rs index 619553c2e748..c59bfb4c91b1 100644 --- a/components/style/gecko_bindings/structs_debug.rs +++ b/components/style/gecko_bindings/structs_debug.rs @@ -12140,7 +12140,7 @@ pub mod root { pub type RawGeckoNode = root::nsINode; pub type RawGeckoElement = root::mozilla::dom::Element; pub type RawGeckoDocument = root::nsIDocument; - pub type RawGeckoPresContext = [u64; 162usize]; + pub type RawGeckoPresContext = root::nsPresContext; pub type RawGeckoAnimationValueList = root::nsTArray; pub type RawGeckoNodeBorrowed = *const root::RawGeckoNode; @@ -12149,11 +12149,9 @@ pub mod root { pub type RawGeckoElementBorrowedOrNull = *const root::RawGeckoElement; pub type RawGeckoDocumentBorrowed = *const root::RawGeckoDocument; pub type RawGeckoDocumentBorrowedOrNull = *const root::RawGeckoDocument; - pub type RawGeckoPresContextOwned = *mut [u64; 162usize]; - pub type RawGeckoPresContextBorrowed = *const [u64; 162usize]; - pub type RawGeckoAnimationValueListBorrowedMut = - *mut root::RawGeckoAnimationValueList; - pub type RawGeckoPresContextBorrowedMut = *mut [u64; 162usize]; + pub type RawGeckoPresContextOwned = *mut root::RawGeckoPresContext; + pub type RawGeckoPresContextBorrowed = *const root::RawGeckoPresContext; + pub type RawGeckoPresContextBorrowedMut = *mut root::RawGeckoPresContext; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsCSSTokenSerializationType { diff --git a/components/style/gecko_bindings/structs_release.rs b/components/style/gecko_bindings/structs_release.rs index 7d3a1a5caf16..486764f58be7 100644 --- a/components/style/gecko_bindings/structs_release.rs +++ b/components/style/gecko_bindings/structs_release.rs @@ -12067,20 +12067,21 @@ pub mod root { pub type RawGeckoNode = root::nsINode; pub type RawGeckoElement = root::mozilla::dom::Element; pub type RawGeckoDocument = root::nsIDocument; - pub type RawGeckoPresContext = [u64; 158usize]; pub type RawGeckoAnimationValueList = root::nsTArray; + pub type RawGeckoPresContext = root::nsPresContext; pub type RawGeckoNodeBorrowed = *const root::RawGeckoNode; pub type RawGeckoNodeBorrowedOrNull = *const root::RawGeckoNode; pub type RawGeckoElementBorrowed = *const root::RawGeckoElement; pub type RawGeckoElementBorrowedOrNull = *const root::RawGeckoElement; pub type RawGeckoDocumentBorrowed = *const root::RawGeckoDocument; pub type RawGeckoDocumentBorrowedOrNull = *const root::RawGeckoDocument; - pub type RawGeckoPresContextOwned = *mut [u64; 158usize]; - pub type RawGeckoPresContextBorrowed = *const [u64; 158usize]; pub type RawGeckoAnimationValueListBorrowedMut = *mut root::RawGeckoAnimationValueList; pub type RawGeckoPresContextBorrowedMut = *mut [u64; 158usize]; + pub type RawGeckoPresContextOwned = *mut root::RawGeckoPresContext; + pub type RawGeckoPresContextBorrowed = *const root::RawGeckoPresContext; + pub type RawGeckoPresContextBorrowedMut = *mut root::RawGeckoPresContext; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsCSSTokenSerializationType {