diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index 6764269c282..f5890e2b95f 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -337,7 +337,7 @@ impl<'le> TElement for GeckoElement<'le> { fn get_state(&self) -> ElementState { unsafe { - ElementState::from_bits_truncate(Gecko_ElementState(self.0) as u16) + ElementState::from_bits_truncate(Gecko_ElementState(self.0)) } } diff --git a/components/style/gecko_bindings/bindings.rs b/components/style/gecko_bindings/bindings.rs index 1b560cd4518..d9106d9ace2 100644 --- a/components/style/gecko_bindings/bindings.rs +++ b/components/style/gecko_bindings/bindings.rs @@ -349,7 +349,7 @@ extern "C" { -> RawGeckoNodeBorrowedOrNull; } extern "C" { - pub fn Gecko_ElementState(element: RawGeckoElementBorrowed) -> u8; + pub fn Gecko_ElementState(element: RawGeckoElementBorrowed) -> u16; } extern "C" { pub fn Gecko_IsHTMLElementInHTMLDocument(element: RawGeckoElementBorrowed)