Make changes to clip property trigger a reflow change, not just a visual

change.  Bug 88653, r=pierre, sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@104972 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2001-10-10 00:21:02 +00:00
parent 071b47cb42
commit 0d0ca5eeac
4 changed files with 18 additions and 22 deletions

View File

@@ -897,12 +897,10 @@ PRInt32 nsStyleDisplay::CalcDifference(const nsStyleDisplay& aOther) const
(mOverflow == aOther.mOverflow)) {
if ((mBreakType == aOther.mBreakType) &&
(mBreakBefore == aOther.mBreakBefore) &&
(mBreakAfter == aOther.mBreakAfter)) {
if ((mClipFlags == aOther.mClipFlags) &&
(mClip == aOther.mClip)) {
return NS_STYLE_HINT_NONE;
}
return NS_STYLE_HINT_VISUAL;
(mBreakAfter == aOther.mBreakAfter) &&
(mClipFlags == aOther.mClipFlags) &&
(mClip == aOther.mClip)) {
return NS_STYLE_HINT_NONE;
}
return NS_STYLE_HINT_REFLOW;
}