Bug 1322570 Part 4 - Use GetParentAllowServo() in KeyframeEffectReadOnly::UpdateProperties.
Per
bug 1322570 Comment 7, we could drop the GetParentAllowServo() when we
invoke UpdateProperties() from a SquentialTask, so allow it for now.
MozReview-Commit-ID: 52NauGaz4Zv
--- a/dom/animation/KeyframeEffectReadOnly.cpp
+++ b/dom/animation/KeyframeEffectReadOnly.cpp
@@ -301,19 +301,20 @@ KeyframeEffectReadOnly::UpdateProperties
if (!mDocument->IsStyledByServo()) {
DoUpdateProperties(Move(aStyleContext));
return;
}
const ServoComputedValues* currentStyle =
aStyleContext->StyleSource().AsServoComputedValues();
+ // FIXME: Remove GetParentAllowServo() in Bug 1349004.
const ServoComputedValues* parentStyle =
- aStyleContext->GetParent()
- ? aStyleContext->GetParent()->StyleSource().AsServoComputedValues()
+ aStyleContext->GetParentAllowServo()
+ ? aStyleContext->GetParentAllowServo()->StyleSource().AsServoComputedValues()
: nullptr;
const ServoComputedValuesWithParent servoValues = { currentStyle, parentStyle };
DoUpdateProperties(servoValues);
}
void
KeyframeEffectReadOnly::UpdateProperties(