Bug 1346052 - Add Servo_AnimationValue_Compute for AnimationValue::FromString.

We need this FFI to compute the AnimationValue from a property id and a
string.
This commit is contained in:
Boris Chiou 2017-05-03 11:19:23 +08:00
parent 7b1006936a
commit a46960dbfa
2 changed files with 53 additions and 4 deletions

View file

@ -1074,10 +1074,6 @@ extern "C" {
pub fn Gecko_CSSValue_GetAbsoluteLength(css_value: nsCSSValueBorrowed)
-> nscoord;
}
extern "C" {
pub fn Gecko_GetAppUnitsPerPhysicalInch(pres_context: RawGeckoPresContextBorrowed)
-> i32;
}
extern "C" {
pub fn Gecko_CSSValue_GetKeyword(aCSSValue: nsCSSValueBorrowed)
-> nsCSSKeyword;
@ -1172,6 +1168,11 @@ extern "C" {
font_size: nscoord, use_user_font_set: bool)
-> GeckoFontMetrics;
}
extern "C" {
pub fn Gecko_GetAppUnitsPerPhysicalInch(pres_context:
RawGeckoPresContextBorrowed)
-> i32;
}
extern "C" {
pub fn Gecko_GetMediaFeatures() -> *const nsMediaFeature;
}
@ -1855,6 +1856,15 @@ extern "C" {
RawServoAnimationValueBorrowed)
-> 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)