Bug 1505645 - Remove other now useless old style system code. r=hiro

We'd better not be hitting those code paths already :-)

Differential Revision: https://phabricator.services.mozilla.com/D11276

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2018-11-08 02:10:58 +00:00
parent 9551f8369c
commit b3a5d43536
2 changed files with 9 additions and 16 deletions

View File

@ -444,13 +444,10 @@ SetAnimatable(nsCSSPropertyID aProperty,
break;
case eCSSProperty_transform: {
aAnimatable = InfallibleTArray<TransformFunction>();
if (aAnimationValue.mServo) {
RefPtr<nsCSSValueSharedList> list;
Servo_AnimationValue_GetTransform(aAnimationValue.mServo, &list);
AddTransformFunctions(list, aFrame, aRefBox, aAnimatable);
} else {
MOZ_CRASH("old style system disabled");
}
MOZ_ASSERT(aAnimationValue.mServo);
RefPtr<nsCSSValueSharedList> list;
Servo_AnimationValue_GetTransform(aAnimationValue.mServo, &list);
AddTransformFunctions(list, aFrame, aRefBox, aAnimatable);
break;
}
default:

View File

@ -609,15 +609,11 @@ AppendKeyframe(double aOffset,
{
Keyframe& frame = *aKeyframes.AppendElement();
frame.mOffset.emplace(aOffset);
if (aValue.mServo) {
RefPtr<RawServoDeclarationBlock> decl =
Servo_AnimationValue_Uncompute(aValue.mServo).Consume();
frame.mPropertyValues.AppendElement(
PropertyValuePair(aProperty, std::move(decl)));
} else {
MOZ_CRASH("old style system disabled");
}
MOZ_ASSERT(aValue.mServo);
RefPtr<RawServoDeclarationBlock> decl =
Servo_AnimationValue_Uncompute(aValue.mServo).Consume();
frame.mPropertyValues.AppendElement(
PropertyValuePair(aProperty, std::move(decl)));
return frame;
}