mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1458814: Remove code that is no longer called. r=hiro
Au revoir! MozReview-Commit-ID: DjqszUSIzXs
This commit is contained in:
parent
ceca84ff64
commit
27ca8b58c8
@ -578,33 +578,6 @@ nsSMILCSSValueType::ValueFromAnimationValue(nsCSSPropertyID aPropID,
|
||||
return result;
|
||||
}
|
||||
|
||||
// static
|
||||
void
|
||||
nsSMILCSSValueType::ValueToString(const nsSMILValue& aValue,
|
||||
nsAString& aString)
|
||||
{
|
||||
MOZ_ASSERT(aValue.mType == &nsSMILCSSValueType::sSingleton,
|
||||
"Unexpected SMIL value type");
|
||||
const ValueWrapper* wrapper = ExtractValueWrapper(aValue);
|
||||
if (!wrapper) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (nsCSSProps::IsShorthand(wrapper->mPropID)) {
|
||||
// In case of shorthand on servo, we iterate over all mServoValues array
|
||||
// since we have multiple AnimationValues in the array for each longhand
|
||||
// component.
|
||||
Servo_Shorthand_AnimationValues_Serialize(wrapper->mPropID,
|
||||
&wrapper->mServoValues,
|
||||
&aString);
|
||||
return;
|
||||
}
|
||||
|
||||
Servo_AnimationValue_Serialize(wrapper->mServoValues[0],
|
||||
wrapper->mPropID,
|
||||
&aString);
|
||||
}
|
||||
|
||||
// static
|
||||
bool
|
||||
nsSMILCSSValueType::SetPropertyValues(const nsSMILValue& aValue,
|
||||
|
@ -103,18 +103,6 @@ public:
|
||||
Element* aTargetElement,
|
||||
const AnimationValue& aValue);
|
||||
|
||||
/**
|
||||
* Creates a string representation of the given nsSMILValue.
|
||||
*
|
||||
* Note: aValue is expected to be of this type (that is, it's expected to
|
||||
* have been initialized by nsSMILCSSValueType::sSingleton). If aValue is a
|
||||
* freshly-initialized value the resulting string will be empty.
|
||||
*
|
||||
* @param aValue The nsSMILValue to be converted into a string.
|
||||
* @param [out] aString The string to be populated with the given value.
|
||||
*/
|
||||
static void ValueToString(const nsSMILValue& aValue, nsAString& aString);
|
||||
|
||||
/**
|
||||
* Sets the relevant property values in the declaration block.
|
||||
*
|
||||
|
@ -486,10 +486,6 @@ SERVO_BINDING_FUNC(Servo_AnimationValue_Serialize, void,
|
||||
RawServoAnimationValueBorrowed value,
|
||||
nsCSSPropertyID property,
|
||||
nsAString* buffer)
|
||||
SERVO_BINDING_FUNC(Servo_Shorthand_AnimationValues_Serialize, void,
|
||||
nsCSSPropertyID shorthand_property,
|
||||
RawGeckoServoAnimationValueListBorrowed values,
|
||||
nsAString* buffer)
|
||||
SERVO_BINDING_FUNC(Servo_AnimationValue_GetOpacity, float,
|
||||
RawServoAnimationValueBorrowed value)
|
||||
SERVO_BINDING_FUNC(Servo_AnimationValue_Opacity,
|
||||
|
@ -708,31 +708,6 @@ pub extern "C" fn Servo_AnimationValue_Serialize(
|
||||
debug_assert!(rv.is_ok());
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn Servo_Shorthand_AnimationValues_Serialize(
|
||||
shorthand_property: nsCSSPropertyID,
|
||||
values: RawGeckoServoAnimationValueListBorrowed,
|
||||
buffer: *mut nsAString,
|
||||
) {
|
||||
let property_id = get_property_id_from_nscsspropertyid!(shorthand_property, ());
|
||||
let shorthand = match property_id.as_shorthand() {
|
||||
Ok(shorthand) => shorthand,
|
||||
_ => return,
|
||||
};
|
||||
|
||||
// Convert RawServoAnimationValue(s) into a vector of PropertyDeclaration
|
||||
// so that we can use reference of the PropertyDeclaration without worrying
|
||||
// about its lifetime. (longhands_to_css() expects &PropertyDeclaration
|
||||
// iterator.)
|
||||
let declarations: Vec<PropertyDeclaration> =
|
||||
values.iter().map(|v| AnimationValue::as_arc(&&*v.mRawPtr).uncompute()).collect();
|
||||
|
||||
let _ = shorthand.longhands_to_css(
|
||||
declarations.iter(),
|
||||
&mut CssWriter::new(&mut *buffer),
|
||||
);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn Servo_AnimationValue_GetOpacity(
|
||||
value: RawServoAnimationValueBorrowed,
|
||||
|
Loading…
Reference in New Issue
Block a user