Skip to content

Commit

Permalink
Make Gecko_ElementState return u16
Browse files Browse the repository at this point in the history
  • Loading branch information
upsuper committed Jan 5, 2017
1 parent 381651f commit 0c913d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/style/gecko/wrapper.rs
Expand Up @@ -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))
}
}

Expand Down
2 changes: 1 addition & 1 deletion components/style/gecko_bindings/bindings.rs
Expand Up @@ -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)
Expand Down

0 comments on commit 0c913d5

Please sign in to comment.