Bug 1383634: Remove usage of GetParentAllowServo in nsRuleNode. r?xidorn
This is Gecko-only code, so no need to allow Servo.
MozReview-Commit-ID: H4xZx0jMREI
--- a/layout/style/nsRuleNode.cpp
+++ b/layout/style/nsRuleNode.cpp
@@ -8649,17 +8649,17 @@ nsRuleNode::ComputePositionData(void* aS
parentPos->mJustifyContent,
NS_STYLE_JUSTIFY_NORMAL);
// justify-items: enum, inherit, initial
const auto& justifyItemsValue = *aRuleData->ValueForJustifyItems();
if (MOZ_UNLIKELY(justifyItemsValue.GetUnit() == eCSSUnit_Inherit)) {
if (MOZ_LIKELY(parentContext)) {
pos->mJustifyItems =
- parentPos->ComputedJustifyItems(parentContext->GetParentAllowServo());
+ parentPos->ComputedJustifyItems(parentContext->GetParent());
} else {
pos->mJustifyItems = NS_STYLE_JUSTIFY_NORMAL;
}
conditions.SetUncacheable();
} else {
SetValue(justifyItemsValue,
pos->mJustifyItems, conditions,
SETVAL_ENUMERATED | SETVAL_UNSET_INITIAL,