Skip to content

Commit

Permalink
Update Stylo bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jryans committed Aug 16, 2017
1 parent 25d2b70 commit 711adba
Show file tree
Hide file tree
Showing 3 changed files with 284 additions and 237 deletions.
51 changes: 40 additions & 11 deletions components/style/gecko/generated/bindings.rs
Expand Up @@ -511,6 +511,12 @@ extern "C" {
extern "C" {
pub fn Servo_StyleSet_Drop(ptr: RawServoStyleSetOwned);
}
extern "C" {
pub fn Gecko_ChildrenCount(node: RawGeckoNodeBorrowed) -> u32;
}
extern "C" {
pub fn Gecko_NodeIsElement(node: RawGeckoNodeBorrowed) -> bool;
}
extern "C" {
pub fn Gecko_IsInDocument(node: RawGeckoNodeBorrowed) -> bool;
}
Expand Down Expand Up @@ -589,16 +595,26 @@ extern "C" {
extern "C" {
pub fn Gecko_DocumentState(aDocument: *const nsIDocument) -> u64;
}
extern "C" {
pub fn Gecko_IsTextNode(node: RawGeckoNodeBorrowed) -> bool;
}
extern "C" {
pub fn Gecko_IsRootElement(element: RawGeckoElementBorrowed) -> bool;
}
extern "C" {
pub fn Gecko_MatchesElement(type_: CSSPseudoClassType,
element: RawGeckoElementBorrowed) -> bool;
}
extern "C" {
pub fn Gecko_LocalName(element: RawGeckoElementBorrowed) -> *mut nsIAtom;
}
extern "C" {
pub fn Gecko_Namespace(element: RawGeckoElementBorrowed) -> *mut nsIAtom;
}
extern "C" {
pub fn Gecko_GetElementId(element: RawGeckoElementBorrowed)
-> *mut nsIAtom;
}
extern "C" {
pub fn Gecko_MatchLang(element: RawGeckoElementBorrowed,
override_lang: *mut nsIAtom,
Expand Down Expand Up @@ -1057,6 +1073,9 @@ extern "C" {
type_: nsStyleContentType)
-> *mut nsStyleContentData_CounterFunction;
}
extern "C" {
pub fn Gecko_GetNodeFlags(node: RawGeckoNodeBorrowed) -> u32;
}
extern "C" {
pub fn Gecko_SetNodeFlags(node: RawGeckoNodeBorrowed, flags: u32);
}
Expand All @@ -1083,7 +1102,10 @@ extern "C" {
pub fn Gecko_CalcStyleDifference(old_style: ServoStyleContextBorrowed,
new_style: ServoStyleContextBorrowed,
old_style_bits: u64,
any_style_changed: *mut bool)
any_style_changed: *mut bool) -> u32;
}
extern "C" {
pub fn Gecko_HintsHandledForDescendants(aHint: nsChangeHint)
-> nsChangeHint;
}
extern "C" {
Expand Down Expand Up @@ -1892,24 +1914,31 @@ extern "C" {
pub fn Servo_Element_ClearData(node: RawGeckoElementBorrowed);
}
extern "C" {
pub fn Servo_Element_SizeOfExcludingThisAndCVs(malloc_size_of: MallocSizeOf,
pub fn Servo_Element_SizeOfExcludingThisAndCVs(arg1: MallocSizeOf,
seen_ptrs: *mut SeenPtrs,
node: RawGeckoElementBorrowed)
node:
RawGeckoElementBorrowed)
-> usize;
}
extern "C" {
pub fn Servo_Element_HasPrimaryComputedValues(element: RawGeckoElementBorrowed) -> bool;
pub fn Servo_Element_HasPrimaryComputedValues(node:
RawGeckoElementBorrowed)
-> bool;
}
extern "C" {
pub fn Servo_Element_GetPrimaryComputedValues(element: RawGeckoElementBorrowed)
pub fn Servo_Element_GetPrimaryComputedValues(node:
RawGeckoElementBorrowed)
-> ServoStyleContextStrong;
}
extern "C" {
pub fn Servo_Element_HasPseudoComputedValues(element: RawGeckoElementBorrowed, index: usize)
-> bool;
pub fn Servo_Element_HasPseudoComputedValues(node:
RawGeckoElementBorrowed,
index: usize) -> bool;
}
extern "C" {
pub fn Servo_Element_GetPseudoComputedValues(element: RawGeckoElementBorrowed, index: usize)
pub fn Servo_Element_GetPseudoComputedValues(node:
RawGeckoElementBorrowed,
index: usize)
-> ServoStyleContextStrong;
}
extern "C" {
Expand Down Expand Up @@ -1956,7 +1985,7 @@ extern "C" {
}
extern "C" {
pub fn Servo_StyleSet_Init(pres_context: RawGeckoPresContextOwned)
-> RawServoStyleSetOwned;
-> *mut RawServoStyleSet;
}
extern "C" {
pub fn Servo_StyleSet_Clear(set: RawServoStyleSetBorrowed);
Expand All @@ -1967,7 +1996,7 @@ extern "C" {
extern "C" {
pub fn Servo_StyleSet_MediumFeaturesChanged(set: RawServoStyleSetBorrowed,
viewport_units_used:
*mut bool) -> OriginFlags;
*mut bool) -> u8;
}
extern "C" {
pub fn Servo_StyleSet_CompatModeChanged(raw_data:
Expand Down Expand Up @@ -2815,7 +2844,7 @@ extern "C" {
}
extern "C" {
pub fn Servo_TakeChangeHint(element: RawGeckoElementBorrowed,
was_restyled: *mut bool) -> nsChangeHint;
was_restyled: *mut bool) -> u32;
}
extern "C" {
pub fn Servo_ResolveStyle(element: RawGeckoElementBorrowed,
Expand Down

0 comments on commit 711adba

Please sign in to comment.