Bug 1452534 part 4 - Remove unused ComputedStyle::{IsReset,IsInherited}. r=emilio
authorXidorn Quan <me@upsuper.org>
Mon, 09 Apr 2018 15:57:53 +1000
changeset 457330 1e06dbb241b1fd9cf9a9cd66981fd9a9d320180f
parent 457329 bf051d225f32146f25bbaaf866418f9b86497306
child 457331 4b841d1c7ec0513eb080fb033f54bde12ccb7ddc
push id153
push userfmarier@mozilla.com
push dateTue, 10 Apr 2018 02:28:40 +0000
reviewersemilio
bugs1452534
milestone61.0a1
Bug 1452534 part 4 - Remove unused ComputedStyle::{IsReset,IsInherited}. r=emilio MozReview-Commit-ID: DHOhrznm3ac
layout/style/ComputedStyle.h
--- a/layout/style/ComputedStyle.h
+++ b/layout/style/ComputedStyle.h
@@ -380,22 +380,16 @@ public:
   static nscolor CombineVisitedColors(nscolor *aColors,
                                       bool aLinkIsVisited);
 
   /**
    * Start the background image loads for this ComputedStyle.
    */
   inline void StartBackgroundImageLoads();
 
-  static bool IsReset(const nsStyleStructID aSID) {
-    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);
   static const char* StructName(nsStyleStructID aSID);
   static bool LookupStruct(const nsACString& aName, nsStyleStructID& aResult);
 #endif