PassRefPtr<DoubleStyleInterpolation> DoubleStyleInterpolation::maybeCreateFromMotionRotation(const CSSValue& start, const CSSValue& end, CSSPropertyID id) { float startRotation, endRotation; MotionRotationType startRotationType, endRotationType; if (!extractMotionRotation(start, &startRotation, &startRotationType) || !extractMotionRotation(end, &endRotation, &endRotationType) || startRotationType != endRotationType) return nullptr; return adoptRef(new DoubleStyleInterpolation( motionRotationToInterpolableValue(start), motionRotationToInterpolableValue(end), id, true, InterpolationRange::RangeAll, startRotationType == MotionRotationAuto)); }
static PassRefPtrWillBeRawPtr<CSSValue> roundTripMotionRotation(PassRefPtrWillBeRawPtr<CSSValue> value, bool flag) { return interpolableValueToMotionRotation(motionRotationToInterpolableValue(*value).get(), flag); }