Use a reflow (without forced repaint) hint for position struct changes. Bug

243882, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@156752 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2004-05-22 05:50:12 +00:00
parent ad30f9b7b7
commit cc7a3bb0f1
2 changed files with 14 additions and 6 deletions

View File

@@ -860,6 +860,10 @@ nsStylePosition::nsStylePosition(const nsStylePosition& aSource)
nsChangeHint nsStylePosition::CalcDifference(const nsStylePosition& aOther) const
{
if (mZIndex != aOther.mZIndex) {
return NS_STYLE_HINT_REFLOW;
}
if ((mOffset == aOther.mOffset) &&
(mWidth == aOther.mWidth) &&
(mMinWidth == aOther.mMinWidth) &&
@@ -867,10 +871,10 @@ nsChangeHint nsStylePosition::CalcDifference(const nsStylePosition& aOther) cons
(mHeight == aOther.mHeight) &&
(mMinHeight == aOther.mMinHeight) &&
(mMaxHeight == aOther.mMaxHeight) &&
(mBoxSizing == aOther.mBoxSizing) &&
(mZIndex == aOther.mZIndex))
(mBoxSizing == aOther.mBoxSizing))
return NS_STYLE_HINT_NONE;
return NS_STYLE_HINT_REFLOW;
return nsChangeHint_ReflowFrame;
}
// --------------------