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

change.  Bug 88653, r=pierre, sr=roc+moz
This commit is contained in:
bzbarsky%mit.edu 2001-10-10 00:21:02 +00:00
parent 65fd59ed74
commit cca316e69b
4 changed files with 18 additions and 22 deletions

View File

@ -131,11 +131,11 @@ CSS_PROP(-moz-box-sizing, box_sizing, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-ordinal-group, box_ordinal_group, FRAMECHANGE)
CSS_PROP(caption-side, caption_side, REFLOW)
CSS_PROP(clear, clear, REFLOW)
CSS_PROP(clip, clip, VISUAL)
CSS_PROP(-x-clip-bottom, clip_bottom, VISUAL) // XXX bug 3935
CSS_PROP(-x-clip-left, clip_left, VISUAL) // XXX bug 3935
CSS_PROP(-x-clip-right, clip_right, VISUAL) // XXX bug 3935
CSS_PROP(-x-clip-top, clip_top, VISUAL) // XXX bug 3935
CSS_PROP(clip, clip, REFLOW)
CSS_PROP(-x-clip-bottom, clip_bottom, REFLOW) // XXX bug 3935
CSS_PROP(-x-clip-left, clip_left, REFLOW) // XXX bug 3935
CSS_PROP(-x-clip-right, clip_right, REFLOW) // XXX bug 3935
CSS_PROP(-x-clip-top, clip_top, REFLOW) // XXX bug 3935
CSS_PROP(color, color, VISUAL)
CSS_PROP(content, content, FRAMECHANGE)
CSS_PROP(counter-increment, counter_increment, REFLOW)

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;
}

View File

@ -131,11 +131,11 @@ CSS_PROP(-moz-box-sizing, box_sizing, REFLOW) // XXX bug 3935
CSS_PROP(-moz-box-ordinal-group, box_ordinal_group, FRAMECHANGE)
CSS_PROP(caption-side, caption_side, REFLOW)
CSS_PROP(clear, clear, REFLOW)
CSS_PROP(clip, clip, VISUAL)
CSS_PROP(-x-clip-bottom, clip_bottom, VISUAL) // XXX bug 3935
CSS_PROP(-x-clip-left, clip_left, VISUAL) // XXX bug 3935
CSS_PROP(-x-clip-right, clip_right, VISUAL) // XXX bug 3935
CSS_PROP(-x-clip-top, clip_top, VISUAL) // XXX bug 3935
CSS_PROP(clip, clip, REFLOW)
CSS_PROP(-x-clip-bottom, clip_bottom, REFLOW) // XXX bug 3935
CSS_PROP(-x-clip-left, clip_left, REFLOW) // XXX bug 3935
CSS_PROP(-x-clip-right, clip_right, REFLOW) // XXX bug 3935
CSS_PROP(-x-clip-top, clip_top, REFLOW) // XXX bug 3935
CSS_PROP(color, color, VISUAL)
CSS_PROP(content, content, FRAMECHANGE)
CSS_PROP(counter-increment, counter_increment, REFLOW)

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;
}