mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make Gecko_ElementState return u16
This commit is contained in:
parent
381651fd10
commit
0c913d5918
2 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue