From c6be1a8995eed8cb40288e7cf90dfa07cb9351ac Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Thu, 3 Nov 2016 17:53:12 +0800 Subject: [PATCH] Regenerate bindings. MozReview-Commit-ID: LLZf2HKBpjF --- components/style/binding_tools/regen.py | 1 + components/style/gecko_bindings/bindings.rs | 16 ++++++++++++++++ components/style/gecko_bindings/structs_debug.rs | 2 +- .../style/gecko_bindings/structs_release.rs | 2 +- 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/components/style/binding_tools/regen.py b/components/style/binding_tools/regen.py index 78a22738f1a..88ed56baf00 100755 --- a/components/style/binding_tools/regen.py +++ b/components/style/binding_tools/regen.py @@ -278,6 +278,7 @@ COMPILATION_TARGETS = { "nsCSSValue", "nsCSSValueSharedList", "nsChangeHint", + "nsCursorImage", "nsFont", "nsIAtom", "nsIDocument", diff --git a/components/style/gecko_bindings/bindings.rs b/components/style/gecko_bindings/bindings.rs index a17d2df57bc..dcd961263c6 100644 --- a/components/style/gecko_bindings/bindings.rs +++ b/components/style/gecko_bindings/bindings.rs @@ -60,6 +60,7 @@ use gecko_bindings::structs::nsCSSShadowArray; use gecko_bindings::structs::nsCSSValue; use gecko_bindings::structs::nsCSSValueSharedList; use gecko_bindings::structs::nsChangeHint; +use gecko_bindings::structs::nsCursorImage; use gecko_bindings::structs::nsFont; use gecko_bindings::structs::nsIAtom; use gecko_bindings::structs::nsIDocument; @@ -510,6 +511,21 @@ extern "C" { pub fn Gecko_CopyListStyleImageFrom(dest: *mut nsStyleList, src: *const nsStyleList); } +extern "C" { + pub fn Gecko_SetCursorArrayLength(ui: *mut nsStyleUserInterface, + len: usize); +} +extern "C" { + pub fn Gecko_SetCursorImage(cursor: *mut nsCursorImage, + string_bytes: *const u8, string_length: u32, + base_uri: *mut ThreadSafeURIHolder, + referrer: *mut ThreadSafeURIHolder, + principal: *mut ThreadSafePrincipalHolder); +} +extern "C" { + pub fn Gecko_CopyCursorArrayFrom(dest: *mut nsStyleUserInterface, + src: *const nsStyleUserInterface); +} extern "C" { pub fn Gecko_SetMozBinding(style_struct: *mut nsStyleDisplay, string_bytes: *const u8, string_length: u32, diff --git a/components/style/gecko_bindings/structs_debug.rs b/components/style/gecko_bindings/structs_debug.rs index 298f661ac28..eaa06e839e2 100644 --- a/components/style/gecko_bindings/structs_debug.rs +++ b/components/style/gecko_bindings/structs_debug.rs @@ -11866,7 +11866,7 @@ pub struct nsCursorImage { pub mHaveHotspot: bool, pub mHotspotX: f32, pub mHotspotY: f32, - pub mImage: nsCOMPtr, + pub mImage: RefPtr, } #[test] fn bindgen_test_layout_nsCursorImage() { diff --git a/components/style/gecko_bindings/structs_release.rs b/components/style/gecko_bindings/structs_release.rs index c8e67da2070..9a2686b93f7 100644 --- a/components/style/gecko_bindings/structs_release.rs +++ b/components/style/gecko_bindings/structs_release.rs @@ -11822,7 +11822,7 @@ pub struct nsCursorImage { pub mHaveHotspot: bool, pub mHotspotX: f32, pub mHotspotY: f32, - pub mImage: nsCOMPtr, + pub mImage: RefPtr, } #[test] fn bindgen_test_layout_nsCursorImage() {