зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
11abb9d092
Коммит
b6f9a38709
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче