diff options
author | Boris Chiou <boris.chiou@gmail.com> | 2017-05-03 11:19:23 +0800 |
---|---|---|
committer | Boris Chiou <boris.chiou@gmail.com> | 2017-05-03 11:59:55 +0800 |
commit | a46960dbfa7e70e32b9bfc9a824fd64409a54c06 (patch) | |
tree | 59365d28348c00d9630bdc5f84d1f90ce72a41a1 /components | |
parent | 7b1006936a27232fb77fef5893cc141e66bb12b7 (diff) | |
download | servo-a46960dbfa7e70e32b9bfc9a824fd64409a54c06.tar.gz servo-a46960dbfa7e70e32b9bfc9a824fd64409a54c06.zip |
Bug 1346052 - Add Servo_AnimationValue_Compute for AnimationValue::FromString.
We need this FFI to compute the AnimationValue from a property id and a
string.
Diffstat (limited to 'components')
-rw-r--r-- | components/style/gecko_bindings/bindings.rs | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/components/style/gecko_bindings/bindings.rs b/components/style/gecko_bindings/bindings.rs index 1b3560dc849..4099761c6c3 100644 --- a/components/style/gecko_bindings/bindings.rs +++ b/components/style/gecko_bindings/bindings.rs @@ -1075,10 +1075,6 @@ extern "C" { -> nscoord; } extern "C" { - pub fn Gecko_GetAppUnitsPerPhysicalInch(pres_context: RawGeckoPresContextBorrowed) - -> i32; -} -extern "C" { pub fn Gecko_CSSValue_GetKeyword(aCSSValue: nsCSSValueBorrowed) -> nsCSSKeyword; } @@ -1173,6 +1169,11 @@ extern "C" { -> GeckoFontMetrics; } extern "C" { + pub fn Gecko_GetAppUnitsPerPhysicalInch(pres_context: + RawGeckoPresContextBorrowed) + -> i32; +} +extern "C" { pub fn Gecko_GetMediaFeatures() -> *const nsMediaFeature; } extern "C" { @@ -1856,6 +1857,15 @@ extern "C" { -> RawServoDeclarationBlockStrong; } extern "C" { + pub fn Servo_AnimationValue_Compute(declarations: + RawServoDeclarationBlockBorrowed, + style: ServoComputedValuesBorrowed, + parent_style: + ServoComputedValuesBorrowedOrNull, + raw_data: RawServoStyleSetBorrowed) + -> RawServoAnimationValueStrong; +} +extern "C" { pub fn Servo_ParseStyleAttribute(data: *const nsACString, extra_data: *mut RawGeckoURLExtraData) -> RawServoDeclarationBlockStrong; |