mirror of
https://github.com/servo/servo.git
synced 2025-06-25 09:34:32 +01:00
Regenerate bindings.
MozReview-Commit-ID: LTpO8Kt3ALk
This commit is contained in:
parent
fbec79e920
commit
df4194154e
4 changed files with 1836 additions and 2011 deletions
|
@ -296,6 +296,7 @@ COMPILATION_TARGETS = {
|
||||||
"nsStyleImageLayers",
|
"nsStyleImageLayers",
|
||||||
"nsStyleImageLayers_Layer",
|
"nsStyleImageLayers_Layer",
|
||||||
"nsStyleImageLayers_LayerType",
|
"nsStyleImageLayers_LayerType",
|
||||||
|
"nsStyleImageRequest",
|
||||||
"nsStyleList",
|
"nsStyleList",
|
||||||
"nsStyleMargin",
|
"nsStyleMargin",
|
||||||
"nsStyleOutline",
|
"nsStyleOutline",
|
||||||
|
|
|
@ -114,6 +114,9 @@ unsafe impl Sync for nsStyleImageLayers_Layer {}
|
||||||
use gecko_bindings::structs::nsStyleImageLayers_LayerType;
|
use gecko_bindings::structs::nsStyleImageLayers_LayerType;
|
||||||
unsafe impl Send for nsStyleImageLayers_LayerType {}
|
unsafe impl Send for nsStyleImageLayers_LayerType {}
|
||||||
unsafe impl Sync for nsStyleImageLayers_LayerType {}
|
unsafe impl Sync for nsStyleImageLayers_LayerType {}
|
||||||
|
use gecko_bindings::structs::nsStyleImageRequest;
|
||||||
|
unsafe impl Send for nsStyleImageRequest {}
|
||||||
|
unsafe impl Sync for nsStyleImageRequest {}
|
||||||
use gecko_bindings::structs::nsStyleList;
|
use gecko_bindings::structs::nsStyleList;
|
||||||
unsafe impl Send for nsStyleList {}
|
unsafe impl Send for nsStyleList {}
|
||||||
unsafe impl Sync for nsStyleList {}
|
unsafe impl Sync for nsStyleList {}
|
||||||
|
@ -172,32 +175,6 @@ use gecko_bindings::structs::nsStyleXUL;
|
||||||
unsafe impl Send for nsStyleXUL {}
|
unsafe impl Send for nsStyleXUL {}
|
||||||
unsafe impl Sync for nsStyleXUL {}
|
unsafe impl Sync for nsStyleXUL {}
|
||||||
|
|
||||||
pub type RawGeckoNode = nsINode;
|
|
||||||
pub type RawGeckoElement = Element;
|
|
||||||
pub type RawGeckoDocument = nsIDocument;
|
|
||||||
extern "C" {
|
|
||||||
pub fn Servo_StyleSheet_AddRef(ptr: RawServoStyleSheetBorrowed);
|
|
||||||
}
|
|
||||||
extern "C" {
|
|
||||||
pub fn Servo_StyleSheet_Release(ptr: RawServoStyleSheetBorrowed);
|
|
||||||
}
|
|
||||||
extern "C" {
|
|
||||||
pub fn Servo_ComputedValues_AddRef(ptr: ServoComputedValuesBorrowed);
|
|
||||||
}
|
|
||||||
extern "C" {
|
|
||||||
pub fn Servo_ComputedValues_Release(ptr: ServoComputedValuesBorrowed);
|
|
||||||
}
|
|
||||||
extern "C" {
|
|
||||||
pub fn Servo_DeclarationBlock_AddRef(ptr:
|
|
||||||
RawServoDeclarationBlockBorrowed);
|
|
||||||
}
|
|
||||||
extern "C" {
|
|
||||||
pub fn Servo_DeclarationBlock_Release(ptr:
|
|
||||||
RawServoDeclarationBlockBorrowed);
|
|
||||||
}
|
|
||||||
extern "C" {
|
|
||||||
pub fn Servo_StyleSet_Drop(ptr: RawServoStyleSetOwned);
|
|
||||||
}
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn Gecko_EnsureTArrayCapacity(aArray: *mut ::std::os::raw::c_void,
|
pub fn Gecko_EnsureTArrayCapacity(aArray: *mut ::std::os::raw::c_void,
|
||||||
aCapacity: usize, aElementSize: usize);
|
aCapacity: usize, aElementSize: usize);
|
||||||
|
@ -206,6 +183,25 @@ extern "C" {
|
||||||
pub fn Gecko_ClearPODTArray(aArray: *mut ::std::os::raw::c_void,
|
pub fn Gecko_ClearPODTArray(aArray: *mut ::std::os::raw::c_void,
|
||||||
aElementSize: usize, aElementAlign: usize);
|
aElementSize: usize, aElementAlign: usize);
|
||||||
}
|
}
|
||||||
|
pub type RawGeckoNode = nsINode;
|
||||||
|
pub type RawGeckoElement = Element;
|
||||||
|
pub type RawGeckoDocument = nsIDocument;
|
||||||
|
pub type ThreadSafePrincipalHolder = nsMainThreadPtrHolder<nsIPrincipal>;
|
||||||
|
extern "C" {
|
||||||
|
pub fn Gecko_AddRefPrincipalArbitraryThread(aPtr:
|
||||||
|
*mut ThreadSafePrincipalHolder);
|
||||||
|
}
|
||||||
|
extern "C" {
|
||||||
|
pub fn Gecko_ReleasePrincipalArbitraryThread(aPtr:
|
||||||
|
*mut ThreadSafePrincipalHolder);
|
||||||
|
}
|
||||||
|
pub type ThreadSafeURIHolder = nsMainThreadPtrHolder<nsIURI>;
|
||||||
|
extern "C" {
|
||||||
|
pub fn Gecko_AddRefURIArbitraryThread(aPtr: *mut ThreadSafeURIHolder);
|
||||||
|
}
|
||||||
|
extern "C" {
|
||||||
|
pub fn Gecko_ReleaseURIArbitraryThread(aPtr: *mut ThreadSafeURIHolder);
|
||||||
|
}
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn Gecko_ChildrenCount(node: RawGeckoNodeBorrowed) -> u32;
|
pub fn Gecko_ChildrenCount(node: RawGeckoNodeBorrowed) -> u32;
|
||||||
}
|
}
|
||||||
|
@ -451,6 +447,13 @@ extern "C" {
|
||||||
pub fn Gecko_SetGradientImageValue(image: *mut nsStyleImage,
|
pub fn Gecko_SetGradientImageValue(image: *mut nsStyleImage,
|
||||||
gradient: *mut nsStyleGradient);
|
gradient: *mut nsStyleGradient);
|
||||||
}
|
}
|
||||||
|
extern "C" {
|
||||||
|
pub fn Gecko_SetUrlImageValue(image: *mut nsStyleImage,
|
||||||
|
url_bytes: *const u8, url_length: u32,
|
||||||
|
base_uri: *mut ThreadSafeURIHolder,
|
||||||
|
referrer: *mut ThreadSafeURIHolder,
|
||||||
|
principal: *mut ThreadSafePrincipalHolder);
|
||||||
|
}
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn Gecko_CopyImageValueFrom(image: *mut nsStyleImage,
|
pub fn Gecko_CopyImageValueFrom(image: *mut nsStyleImage,
|
||||||
other: *const nsStyleImage);
|
other: *const nsStyleImage);
|
||||||
|
@ -460,22 +463,6 @@ extern "C" {
|
||||||
legacy_syntax: bool, stops: u32)
|
legacy_syntax: bool, stops: u32)
|
||||||
-> *mut nsStyleGradient;
|
-> *mut nsStyleGradient;
|
||||||
}
|
}
|
||||||
pub type ThreadSafePrincipalHolder = nsMainThreadPtrHolder<nsIPrincipal>;
|
|
||||||
extern "C" {
|
|
||||||
pub fn Gecko_AddRefPrincipalArbitraryThread(aPtr:
|
|
||||||
*mut ThreadSafePrincipalHolder);
|
|
||||||
}
|
|
||||||
extern "C" {
|
|
||||||
pub fn Gecko_ReleasePrincipalArbitraryThread(aPtr:
|
|
||||||
*mut ThreadSafePrincipalHolder);
|
|
||||||
}
|
|
||||||
pub type ThreadSafeURIHolder = nsMainThreadPtrHolder<nsIURI>;
|
|
||||||
extern "C" {
|
|
||||||
pub fn Gecko_AddRefURIArbitraryThread(aPtr: *mut ThreadSafeURIHolder);
|
|
||||||
}
|
|
||||||
extern "C" {
|
|
||||||
pub fn Gecko_ReleaseURIArbitraryThread(aPtr: *mut ThreadSafeURIHolder);
|
|
||||||
}
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn Gecko_SetMozBinding(style_struct: *mut nsStyleDisplay,
|
pub fn Gecko_SetMozBinding(style_struct: *mut nsStyleDisplay,
|
||||||
string_bytes: *const u8, string_length: u32,
|
string_bytes: *const u8, string_length: u32,
|
||||||
|
@ -849,6 +836,12 @@ extern "C" {
|
||||||
*mut ThreadSafePrincipalHolder)
|
*mut ThreadSafePrincipalHolder)
|
||||||
-> RawServoStyleSheetStrong;
|
-> RawServoStyleSheetStrong;
|
||||||
}
|
}
|
||||||
|
extern "C" {
|
||||||
|
pub fn Servo_StyleSheet_AddRef(sheet: RawServoStyleSheetBorrowed);
|
||||||
|
}
|
||||||
|
extern "C" {
|
||||||
|
pub fn Servo_StyleSheet_Release(sheet: RawServoStyleSheetBorrowed);
|
||||||
|
}
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn Servo_StyleSheet_HasRules(sheet: RawServoStyleSheetBorrowed)
|
pub fn Servo_StyleSheet_HasRules(sheet: RawServoStyleSheetBorrowed)
|
||||||
-> bool;
|
-> bool;
|
||||||
|
@ -856,6 +849,9 @@ extern "C" {
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn Servo_StyleSet_Init() -> RawServoStyleSetOwned;
|
pub fn Servo_StyleSet_Init() -> RawServoStyleSetOwned;
|
||||||
}
|
}
|
||||||
|
extern "C" {
|
||||||
|
pub fn Servo_StyleSet_Drop(set: RawServoStyleSetOwned);
|
||||||
|
}
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn Servo_StyleSet_AppendStyleSheet(set: RawServoStyleSetBorrowed,
|
pub fn Servo_StyleSet_AppendStyleSheet(set: RawServoStyleSetBorrowed,
|
||||||
sheet: RawServoStyleSheetBorrowed);
|
sheet: RawServoStyleSheetBorrowed);
|
||||||
|
@ -897,6 +893,14 @@ extern "C" {
|
||||||
pub fn Servo_ParseStyleAttribute(data: *const nsACString_internal)
|
pub fn Servo_ParseStyleAttribute(data: *const nsACString_internal)
|
||||||
-> RawServoDeclarationBlockStrong;
|
-> RawServoDeclarationBlockStrong;
|
||||||
}
|
}
|
||||||
|
extern "C" {
|
||||||
|
pub fn Servo_DeclarationBlock_AddRef(declarations:
|
||||||
|
RawServoDeclarationBlockBorrowed);
|
||||||
|
}
|
||||||
|
extern "C" {
|
||||||
|
pub fn Servo_DeclarationBlock_Release(declarations:
|
||||||
|
RawServoDeclarationBlockBorrowed);
|
||||||
|
}
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn Servo_DeclarationBlock_Equals(a: RawServoDeclarationBlockBorrowed,
|
pub fn Servo_DeclarationBlock_Equals(a: RawServoDeclarationBlockBorrowed,
|
||||||
b: RawServoDeclarationBlockBorrowed)
|
b: RawServoDeclarationBlockBorrowed)
|
||||||
|
@ -939,6 +943,14 @@ extern "C" {
|
||||||
ServoComputedValuesBorrowedOrNull)
|
ServoComputedValuesBorrowedOrNull)
|
||||||
-> ServoComputedValuesStrong;
|
-> ServoComputedValuesStrong;
|
||||||
}
|
}
|
||||||
|
extern "C" {
|
||||||
|
pub fn Servo_ComputedValues_AddRef(computed_values:
|
||||||
|
ServoComputedValuesBorrowed);
|
||||||
|
}
|
||||||
|
extern "C" {
|
||||||
|
pub fn Servo_ComputedValues_Release(computed_values:
|
||||||
|
ServoComputedValuesBorrowed);
|
||||||
|
}
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn Servo_Initialize();
|
pub fn Servo_Initialize();
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue