*/
public AnimatableValue createValue(AnimationTarget target, String pn,
Value v) {
switch (v.getPrimitiveType()) {
case CSSPrimitiveValue.CSS_PERCENTAGE:
return new AnimatableNumberOrPercentageValue
(target, v.getFloatValue(), true);
case CSSPrimitiveValue.CSS_NUMBER:
return new AnimatableNumberOrPercentageValue
(target, v.getFloatValue());
}
// XXX Do something better than returning null.
return null;
}