aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcomponents/style/binding_tools/regen.py1
-rw-r--r--components/style/gecko_bindings/bindings.rs16
-rw-r--r--components/style/gecko_bindings/structs_debug.rs2
-rw-r--r--components/style/gecko_bindings/structs_release.rs2
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;
@@ -511,6 +512,21 @@ extern "C" {
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,
base_uri: *mut ThreadSafeURIHolder,
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<imgIRequest>,
+ pub mImage: RefPtr<nsStyleImageRequest>,
}
#[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<imgIRequest>,
+ pub mImage: RefPtr<nsStyleImageRequest>,
}
#[test]
fn bindgen_test_layout_nsCursorImage() {