mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
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:
parent
9551f8369c
commit
b3a5d43536
@ -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:
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user