зеркало из https://github.com/mozilla/gecko-dev.git
Remove some style-data-clearing functions that no one uses and that don't do
the right thing anyway. Bug 169989, r+sr=dbaron
This commit is contained in:
Родитель
0191066d5b
Коммит
b55d3bdb7f
|
@ -397,16 +397,6 @@ nsStyleContext::ApplyStyleFixups(nsIPresContext* aPresContext)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsStyleContext::ClearCachedDataForRule(nsIStyleRule* aInlineStyleRule)
|
||||
{
|
||||
mRuleNode->ClearCachedData(aInlineStyleRule); // XXXdwh. If we're willing to *really* special case
|
||||
// inline style, we could only invalidate the struct data
|
||||
// that actually changed. For example, if someone changes
|
||||
// style.left, we really only need to blow away cached
|
||||
// data in the position struct.
|
||||
}
|
||||
|
||||
void
|
||||
nsStyleContext::ClearStyleData(nsIPresContext* aPresContext, nsIStyleRule* aRule)
|
||||
{
|
||||
|
|
|
@ -194,7 +194,6 @@ public:
|
|||
virtual nsCachedStyleData* GetDefaultStyleData();
|
||||
|
||||
virtual nsresult GetRuleTree(nsRuleNode** aResult);
|
||||
virtual nsresult ClearCachedDataInRuleTree(nsIStyleRule* aRule);
|
||||
|
||||
virtual nsresult ClearStyleData(nsIPresContext* aPresContext, nsIStyleRule* aRule);
|
||||
|
||||
|
@ -1506,14 +1505,6 @@ StyleSetImpl::GetDefaultStyleData()
|
|||
return &mDefaultStyleData;
|
||||
}
|
||||
|
||||
nsresult
|
||||
StyleSetImpl::ClearCachedDataInRuleTree(nsIStyleRule* aInlineStyleRule)
|
||||
{
|
||||
if (mRuleTree)
|
||||
mRuleTree->ClearCachedDataInSubtree(aInlineStyleRule);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
StyleSetImpl::ClearStyleData(nsIPresContext* aPresContext, nsIStyleRule* aRule)
|
||||
{
|
||||
|
|
|
@ -123,8 +123,6 @@ public:
|
|||
|
||||
nsStyleStruct* GetUniqueStyleData(nsIPresContext* aPresContext, const nsStyleStructID& aSID);
|
||||
|
||||
void ClearCachedDataForRule(nsIStyleRule* aRule);
|
||||
|
||||
void ClearStyleData(nsIPresContext* aPresContext, nsIStyleRule* aRule);
|
||||
|
||||
nsChangeHint CalcStyleDifference(nsStyleContext* aOther);
|
||||
|
|
|
@ -110,7 +110,6 @@ public:
|
|||
virtual void ReplaceAgentStyleSheets(nsISupportsArray* aNewSheets) = 0;
|
||||
|
||||
virtual nsresult GetRuleTree(nsRuleNode** aResult) = 0;
|
||||
virtual nsresult ClearCachedDataInRuleTree(nsIStyleRule* aRule) = 0;
|
||||
|
||||
// The following two methods can be used to tear down and reconstruct a rule tree. The idea
|
||||
// is to first call BeginRuleTreeReconstruct, which will set aside the old rule
|
||||
|
|
|
@ -397,16 +397,6 @@ nsStyleContext::ApplyStyleFixups(nsIPresContext* aPresContext)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsStyleContext::ClearCachedDataForRule(nsIStyleRule* aInlineStyleRule)
|
||||
{
|
||||
mRuleNode->ClearCachedData(aInlineStyleRule); // XXXdwh. If we're willing to *really* special case
|
||||
// inline style, we could only invalidate the struct data
|
||||
// that actually changed. For example, if someone changes
|
||||
// style.left, we really only need to blow away cached
|
||||
// data in the position struct.
|
||||
}
|
||||
|
||||
void
|
||||
nsStyleContext::ClearStyleData(nsIPresContext* aPresContext, nsIStyleRule* aRule)
|
||||
{
|
||||
|
|
|
@ -123,8 +123,6 @@ public:
|
|||
|
||||
nsStyleStruct* GetUniqueStyleData(nsIPresContext* aPresContext, const nsStyleStructID& aSID);
|
||||
|
||||
void ClearCachedDataForRule(nsIStyleRule* aRule);
|
||||
|
||||
void ClearStyleData(nsIPresContext* aPresContext, nsIStyleRule* aRule);
|
||||
|
||||
nsChangeHint CalcStyleDifference(nsStyleContext* aOther);
|
||||
|
|
|
@ -194,7 +194,6 @@ public:
|
|||
virtual nsCachedStyleData* GetDefaultStyleData();
|
||||
|
||||
virtual nsresult GetRuleTree(nsRuleNode** aResult);
|
||||
virtual nsresult ClearCachedDataInRuleTree(nsIStyleRule* aRule);
|
||||
|
||||
virtual nsresult ClearStyleData(nsIPresContext* aPresContext, nsIStyleRule* aRule);
|
||||
|
||||
|
@ -1506,14 +1505,6 @@ StyleSetImpl::GetDefaultStyleData()
|
|||
return &mDefaultStyleData;
|
||||
}
|
||||
|
||||
nsresult
|
||||
StyleSetImpl::ClearCachedDataInRuleTree(nsIStyleRule* aInlineStyleRule)
|
||||
{
|
||||
if (mRuleTree)
|
||||
mRuleTree->ClearCachedDataInSubtree(aInlineStyleRule);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
StyleSetImpl::ClearStyleData(nsIPresContext* aPresContext, nsIStyleRule* aRule)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче