Bug 1448529 - Remove aListDescendants param of ComputedStyle::List. r?emilio draft
authorXidorn Quan <me@upsuper.org>
Sat, 24 Mar 2018 15:50:14 +1100
changeset 771966 a98be1fa876f433225b7966744937215b231f054
parent 771944 d7b0d0e7228da9d690df6f105b865db973789c34
push id103811
push userxquan@mozilla.com
push dateSat, 24 Mar 2018 04:50:45 +0000
reviewersemilio
bugs1448529
milestone61.0a1
Bug 1448529 - Remove aListDescendants param of ComputedStyle::List. r?emilio MozReview-Commit-ID: 8vkOJ83U7Uv
layout/style/ComputedStyle.cpp
layout/style/ComputedStyle.h
--- a/layout/style/ComputedStyle.cpp
+++ b/layout/style/ComputedStyle.cpp
@@ -343,17 +343,17 @@ ComputedStyle::CalcStyleDifference(Compu
   }
 
   MOZ_ASSERT(NS_IsHintSubset(hint, nsChangeHint_AllHints),
              "Added a new hint without bumping AllHints?");
   return hint & ~nsChangeHint_NeutralChange;
 }
 
 #ifdef DEBUG
-void ComputedStyle::List(FILE* out, int32_t aIndent, bool)
+void ComputedStyle::List(FILE* out, int32_t aIndent)
 {
   nsAutoCString str;
   // Indent
   int32_t ix;
   for (ix = aIndent; --ix >= 0; ) {
     str.AppendLiteral("  ");
   }
   str.Append(nsPrintfCString("%p(%d) parent=%p ",
--- a/layout/style/ComputedStyle.h
+++ b/layout/style/ComputedStyle.h
@@ -340,17 +340,17 @@ public:
     MOZ_ASSERT(0 <= aSID && aSID < nsStyleStructID_Length,
                "must be an inherited or reset SID");
     return nsStyleStructID_Reset_Start <= aSID;
   }
   static bool IsInherited(const nsStyleStructID aSID) { return !IsReset(aSID); }
   static uint32_t GetBitForSID(const nsStyleStructID aSID) { return 1 << aSID; }
 
 #ifdef DEBUG
-  void List(FILE* out, int32_t aIndent, bool aListDescendants = true);
+  void List(FILE* out, int32_t aIndent);
   static const char* StructName(nsStyleStructID aSID);
   static bool LookupStruct(const nsACString& aName, nsStyleStructID& aResult);
 #endif
 
   /**
    * Makes this context match |aOther| in terms of which style structs have
    * been resolved.
    */