Bug 1354775 - Prefer '=' for setting TrackList values in eCSSUnit_Inherit; r=heycam
authorRavi Shankar <wafflespeanut@gmail.com>
Sat, 08 Apr 2017 12:47:44 +0530
changeset 559334 1c1a99d972f1c2f4a35d35f928089ac548f5cdad
parent 559333 17650db2f4781d0a8b4b78c17976cb668f5e5bd9
child 559335 f9d73f9d668fab6f6d9641ca9171a56a253d6852
push id53058
push userarchaeopteryx@coole-files.de
push dateSun, 09 Apr 2017 21:36:26 +0000
reviewersheycam
bugs1354775
milestone55.0a1
Bug 1354775 - Prefer '=' for setting TrackList values in eCSSUnit_Inherit; r=heycam MozReview-Commit-ID: 16dHlgrA9OZ
layout/style/nsRuleNode.cpp
--- a/layout/style/nsRuleNode.cpp
+++ b/layout/style/nsRuleNode.cpp
@@ -8316,24 +8316,17 @@ SetGridTrackList(const nsCSSValue& aValu
 
 {
   switch (aValue.GetUnit()) {
   case eCSSUnit_Null:
     break;
 
   case eCSSUnit_Inherit:
     aConditions.SetUncacheable();
-    aResult.mIsSubgrid = aParentValue.mIsSubgrid;
-    aResult.mLineNameLists = aParentValue.mLineNameLists;
-    aResult.mMinTrackSizingFunctions = aParentValue.mMinTrackSizingFunctions;
-    aResult.mMaxTrackSizingFunctions = aParentValue.mMaxTrackSizingFunctions;
-    aResult.mRepeatAutoLineNameListBefore = aParentValue.mRepeatAutoLineNameListBefore;
-    aResult.mRepeatAutoLineNameListAfter = aParentValue.mRepeatAutoLineNameListAfter;
-    aResult.mRepeatAutoIndex = aParentValue.mRepeatAutoIndex;
-    aResult.mIsAutoFill = aParentValue.mIsAutoFill;
+    aResult = aParentValue;
     break;
 
   case eCSSUnit_Initial:
   case eCSSUnit_Unset:
   case eCSSUnit_None:
     aResult.mIsSubgrid = false;
     aResult.mLineNameLists.Clear();
     aResult.mMinTrackSizingFunctions.Clear();