Remove hint parameter from AttributeChanged methods and simplify style hint mechanism. b=211308 r+sr=bzbarsky

git-svn-id: svn://10.0.0.236/trunk@144735 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%dbaron.org
2003-07-11 21:16:12 +00:00
parent a25de168e9
commit 593f58592d
185 changed files with 986 additions and 1369 deletions

View File

@@ -1083,7 +1083,7 @@ nsStyleDisplay::nsStyleDisplay(const nsStyleDisplay& aSource)
nsChangeHint nsStyleDisplay::CalcDifference(const nsStyleDisplay& aOther) const
{
nsChangeHint hint = nsChangeHint_None;
nsChangeHint hint = nsChangeHint(0);
if (mBinding != aOther.mBinding
|| mPosition != aOther.mPosition
@@ -1395,10 +1395,8 @@ nsChangeHint nsStyleUserInterface::CalcDifference(const nsStyleUserInterface& aO
if (mUserInput == aOther.mUserInput) {
if (mUserModify == aOther.mUserModify) {
if (mUserFocus == aOther.mUserFocus) {
return NS_STYLE_HINT_NONE;
}
return NS_STYLE_HINT_CONTENT;
// ignore mUserFocus
return NS_STYLE_HINT_NONE;
}
return NS_STYLE_HINT_VISUAL;
}
@@ -1441,10 +1439,8 @@ nsChangeHint nsStyleUIReset::CalcDifference(const nsStyleUIReset& aOther) const
if (mForceBrokenImageIcon == aOther.mForceBrokenImageIcon) {
if (mResizer == aOther.mResizer &&
mUserSelect == aOther.mUserSelect) {
if (mKeyEquivalent == aOther.mKeyEquivalent) {
return NS_STYLE_HINT_NONE;
}
return NS_STYLE_HINT_CONTENT;
// ignore mKeyEquivalent
return NS_STYLE_HINT_NONE;
}
return NS_STYLE_HINT_VISUAL;
}