Bug 1383634: Remove usage of GetParentAllowServo in nsRuleNode. r=xidorn
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 24 Jul 2017 10:11:40 +0200
changeset 419390 0616e8c5f57ef1cbbe3c365dee2d7f768c272272
parent 419389 080aa07d32df3d0697f0a44ed72121f384fa6417
child 419391 6765c694080c0d2dea8eb11d7ea22b1175a29fdd
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersxidorn
bugs1383634
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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,