зеркало из https://github.com/mozilla/gecko-dev.git
Remove nsStyleContext::Equals, since it is unused. (Bug 474675) r+sr=bzbarsky
This commit is contained in:
Родитель
879cadee1b
Коммит
a16f1b0d6f
|
@ -197,31 +197,6 @@ nsStyleContext::FindChildWithRules(const nsIAtom* aPseudoTag,
|
|||
return result;
|
||||
}
|
||||
|
||||
|
||||
PRBool nsStyleContext::Equals(const nsStyleContext* aOther) const
|
||||
{
|
||||
PRBool result = PR_TRUE;
|
||||
const nsStyleContext* other = (nsStyleContext*)aOther;
|
||||
|
||||
if (other != this) {
|
||||
if (mParent != other->mParent) {
|
||||
result = PR_FALSE;
|
||||
}
|
||||
else if (mBits != other->mBits) {
|
||||
result = PR_FALSE;
|
||||
}
|
||||
else if (mPseudoTag != other->mPseudoTag) {
|
||||
result = PR_FALSE;
|
||||
}
|
||||
else if (mRuleNode != other->mRuleNode) {
|
||||
result = PR_FALSE;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
//=========================================================================================================
|
||||
|
||||
const void* nsStyleContext::GetStyleData(nsStyleStructID aSID)
|
||||
{
|
||||
const void* cachedData = mCachedStyleData.GetStyleData(aSID);
|
||||
|
|
|
@ -112,7 +112,6 @@ public:
|
|||
NS_HIDDEN_(already_AddRefed<nsStyleContext>)
|
||||
FindChildWithRules(const nsIAtom* aPseudoTag, nsRuleNode* aRules);
|
||||
|
||||
NS_HIDDEN_(PRBool) Equals(const nsStyleContext* aOther) const;
|
||||
PRBool HasTextDecorations() { return !!(mBits & NS_STYLE_HAS_TEXT_DECORATIONS); }
|
||||
|
||||
NS_HIDDEN_(void) SetStyle(nsStyleStructID aSID, void* aStruct);
|
||||
|
|
Загрузка…
Ссылка в новой задаче