mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Update bindings.
This commit is contained in:
parent
644b502b0d
commit
9a804f68f9
3 changed files with 913 additions and 1028 deletions
|
@ -23,6 +23,7 @@ use gecko_bindings::structs::ServoRawOffsetArc;
|
|||
use gecko_bindings::structs::nsIContent;
|
||||
use gecko_bindings::structs::nsIDocument;
|
||||
use gecko_bindings::structs::nsIDocument_DocumentTheme;
|
||||
use gecko_bindings::structs::nsSimpleContentList;
|
||||
use gecko_bindings::structs::RawGeckoAnimationPropertySegment;
|
||||
use gecko_bindings::structs::RawGeckoComputedTiming;
|
||||
use gecko_bindings::structs::RawGeckoCSSPropertyIDList;
|
||||
|
@ -75,6 +76,7 @@ use gecko_bindings::structs::nsCSSFontFaceRule;
|
|||
use gecko_bindings::structs::nsCSSKeyword;
|
||||
use gecko_bindings::structs::nsCSSPropertyID;
|
||||
use gecko_bindings::structs::nsCSSPropertyIDSet;
|
||||
use gecko_bindings::structs::nsCSSRect;
|
||||
use gecko_bindings::structs::nsCSSShadowArray;
|
||||
use gecko_bindings::structs::nsCSSUnit;
|
||||
use gecko_bindings::structs::nsCSSValue;
|
||||
|
@ -2129,6 +2131,17 @@ extern "C" {
|
|||
arg2: RawServoSelectorListBorrowed)
|
||||
-> *const RawGeckoElement;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_SelectorList_QueryFirst(arg1: RawGeckoNodeBorrowed,
|
||||
arg2: RawServoSelectorListBorrowed)
|
||||
-> *const RawGeckoElement;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_SelectorList_QueryAll(arg1: RawGeckoNodeBorrowed,
|
||||
arg2: RawServoSelectorListBorrowed,
|
||||
content_list:
|
||||
*mut nsSimpleContentList);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_StyleSet_AddSizeOfExcludingThis(malloc_size_of: MallocSizeOf,
|
||||
malloc_enclosing_size_of:
|
||||
|
@ -2733,7 +2746,8 @@ extern "C" {
|
|||
pub fn Servo_DeclarationBlock_RemovePropertyById(declarations:
|
||||
RawServoDeclarationBlockBorrowed,
|
||||
property:
|
||||
nsCSSPropertyID) -> bool;
|
||||
nsCSSPropertyID)
|
||||
-> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_DeclarationBlock_HasCSSWideKeyword(declarations:
|
||||
|
@ -3075,6 +3089,19 @@ extern "C" {
|
|||
*const ServoRawOffsetArc<RustString>)
|
||||
-> ServoRawOffsetArc<RustString>;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_IsValidCSSColor(value: *const nsAString) -> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_ComputeColor(set: RawServoStyleSetBorrowedOrNull,
|
||||
current_color: nscolor, value: *const nsAString,
|
||||
result_color: *mut nscolor) -> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_ParseIntersectionObserverRootMargin(value: *const nsAString,
|
||||
result: *mut nsCSSRect)
|
||||
-> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_CreateCSSErrorReporter(sheet: *mut ServoStyleSheet,
|
||||
loader: *mut Loader, uri: *mut nsIURI)
|
||||
|
@ -3102,3 +3129,8 @@ extern "C" {
|
|||
sourceLen: u32, lineNumber: u32,
|
||||
colNumber: u32);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_ContentList_AppendAll(aContentList: *mut nsSimpleContentList,
|
||||
aElements: *mut *const RawGeckoElement,
|
||||
aLength: usize);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue