From 85ad9611043cb82c559f4f11807fa12b54da14a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 27 Apr 2017 13:50:44 +0200 Subject: [PATCH] Update bindings. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MozReview-Commit-ID: 7fFBpR4YzN5 Signed-off-by: Emilio Cobos Álvarez --- components/style/gecko_bindings/bindings.rs | 41 ++++++++++----------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/components/style/gecko_bindings/bindings.rs b/components/style/gecko_bindings/bindings.rs index bb8dd04c19f..f0cbccc54dc 100644 --- a/components/style/gecko_bindings/bindings.rs +++ b/components/style/gecko_bindings/bindings.rs @@ -615,8 +615,7 @@ extern "C" { -> RawServoDeclarationBlockStrongBorrowedOrNull; } extern "C" { - pub fn Gecko_GetAnimationRule(aElement: RawGeckoElementBorrowed, - aPseudoTag: *mut nsIAtom, + pub fn Gecko_GetAnimationRule(aElementOrPseudo: RawGeckoElementBorrowed, aCascadeLevel: EffectCompositor_CascadeLevel, aAnimationValues: @@ -636,46 +635,42 @@ extern "C" { -> bool; } extern "C" { - pub fn Gecko_UpdateAnimations(aElement: RawGeckoElementBorrowed, - aPseudoTagOrNull: *mut nsIAtom, + pub fn Gecko_UpdateAnimations(aElementOrPseudo: RawGeckoElementBorrowed, aOldComputedValues: ServoComputedValuesBorrowedOrNull, aComputedValues: ServoComputedValuesBorrowedOrNull, aParentComputedValues: ServoComputedValuesBorrowedOrNull, - aTaskBits: UpdateAnimationsTasks); + aTasks: UpdateAnimationsTasks); } extern "C" { - pub fn Gecko_ElementHasAnimations(aElement: RawGeckoElementBorrowed, - aPseudoTagOrNull: *mut nsIAtom) -> bool; + pub fn Gecko_ElementHasAnimations(aElementOrPseudo: + RawGeckoElementBorrowed) -> bool; } extern "C" { - pub fn Gecko_ElementHasCSSAnimations(aElement: RawGeckoElementBorrowed, - aPseudoTagOrNull: *mut nsIAtom) + pub fn Gecko_ElementHasCSSAnimations(aElementOrPseudo: + RawGeckoElementBorrowed) -> bool; +} +extern "C" { + pub fn Gecko_ElementHasCSSTransitions(aElementOrPseudo: + RawGeckoElementBorrowed) -> bool; } extern "C" { - pub fn Gecko_ElementHasCSSTransitions(aElement: RawGeckoElementBorrowed, - aPseudoTagOrNull: *mut nsIAtom) - -> bool; -} -extern "C" { - pub fn Gecko_ElementTransitions_Length(aElement: RawGeckoElementBorrowed, - aPseudoTagOrNull: *mut nsIAtom) + pub fn Gecko_ElementTransitions_Length(aElementOrPseudo: + RawGeckoElementBorrowed) -> usize; } extern "C" { - pub fn Gecko_ElementTransitions_PropertyAt(aElement: + pub fn Gecko_ElementTransitions_PropertyAt(aElementOrPseudo: RawGeckoElementBorrowed, - aPseudoTagOrNull: *mut nsIAtom, aIndex: usize) -> nsCSSPropertyID; } extern "C" { - pub fn Gecko_ElementTransitions_EndValueAt(aElement: + pub fn Gecko_ElementTransitions_EndValueAt(aElementOrPseudo: RawGeckoElementBorrowed, - aPseudoTagOrNull: *mut nsIAtom, aIndex: usize) -> RawServoAnimationValueBorrowedOrNull; } @@ -860,10 +855,14 @@ extern "C" { RawGeckoElementBorrowed); } extern "C" { - pub fn Gecko_GetStyleContext(node: RawGeckoNodeBorrowed, + pub fn Gecko_GetStyleContext(element: RawGeckoElementBorrowed, aPseudoTagOrNull: *mut nsIAtom) -> *mut nsStyleContext; } +extern "C" { + pub fn Gecko_GetImplementedPseudo(element: RawGeckoElementBorrowed) + -> *mut nsIAtom; +} extern "C" { pub fn Gecko_CalcStyleDifference(oldstyle: *mut nsStyleContext, newstyle: ServoComputedValuesBorrowed)