Bug 1383634: Remove usage of GetParentAllowServo in nsRuleNode. r?xidorn draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 24 Jul 2017 10:11:40 +0200
changeset 614166 1ade14cf8fe49e87591ce54cc9157d71589bfded
parent 614165 00eedf2ff919a2122459893d28d435b4815f2b30
child 614167 4324ed354f1132285cf799d687d4822836869f07
push id69941
push userbmo:emilio+bugs@crisal.io
push dateMon, 24 Jul 2017 08:16:39 +0000
reviewersxidorn
bugs1383634
milestone56.0a1
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
layout/style/nsRuleNode.cpp
--- 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,