Bug 1188721 - Part 19: Remove unused nsStyleContext::HasCachedDependentStyleData. r?dbaron
MozReview-Commit-ID: 8E2wSv0nUKe
--- 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();