Bug 1188721 - Part 19: Remove unused nsStyleContext::HasCachedDependentStyleData. r?dbaron draft
authorCameron McCormack <cam@mcc.id.au>
Wed, 23 Mar 2016 17:36:00 +1100
changeset 343769 7230684111ca3c939b3d22c0ed1f134600a52c1d
parent 343768 9209a7d7ddce3c20e3eabbfc4961a4f09ae6c19f
child 343770 1015dad10c71e7a263dddaed75b2b764a70c60a1
push id13680
push usercmccormack@mozilla.com
push dateWed, 23 Mar 2016 06:36:18 +0000
reviewersdbaron
bugs1188721
milestone48.0a1
Bug 1188721 - Part 19: Remove unused nsStyleContext::HasCachedDependentStyleData. r?dbaron MozReview-Commit-ID: 8E2wSv0nUKe
layout/style/nsStyleContext.h
--- a/layout/style/nsStyleContext.h
+++ b/layout/style/nsStyleContext.h
@@ -260,26 +260,16 @@ public:
   // Is this style context shared with a sibling or cousin?
   // (See nsStyleSet::GetContext.)
   bool IsShared() const
     { return !!(mBits & NS_STYLE_IS_SHARED); }
 
   // Tell this style context to cache aStruct as the struct for aSID
   void SetStyle(nsStyleStructID aSID, nsStyleStruct* aStruct);
 
-  /**
-   * Returns whether this style context has cached style data for a
-   * given style struct and it does NOT own that struct.  This can
-   * happen because it was inherited from the parent style context, or
-   * because it was stored conditionally on the rule node.
-   */
-  bool HasCachedDependentStyleData(nsStyleStructID aSID) {
-    return mBits & nsCachedStyleData::GetBitForSID(aSID);
-  }
-
   nsRuleNode* RuleNode() { return mRuleNode; }
   void AddStyleBit(const uint64_t& aBit) { mBits |= aBit; }
 
   /*
    * Mark this style context's rule node (and its ancestors) to prevent
    * it from being garbage collected.
    */
   void Mark();