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 421792 0616e8c5f57ef1cbbe3c365dee2d7f768c272272
parent 421791 080aa07d32df3d0697f0a44ed72121f384fa6417
child 421793 6765c694080c0d2dea8eb11d7ea22b1175a29fdd
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [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,