mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backout Part 4 of bug 524925 (73eaf1199ff0). r=roc
This commit is contained in:
parent
d5da4aeffa
commit
28b564baef
@ -448,6 +448,7 @@ nsStyleContext::CalcStyleDifference(nsStyleContext* aOther)
|
||||
DO_STRUCT_DIFFERENCE(Content);
|
||||
DO_STRUCT_DIFFERENCE(UserInterface);
|
||||
DO_STRUCT_DIFFERENCE(Visibility);
|
||||
DO_STRUCT_DIFFERENCE(Outline);
|
||||
DO_STRUCT_DIFFERENCE(TableBorder);
|
||||
DO_STRUCT_DIFFERENCE(Table);
|
||||
DO_STRUCT_DIFFERENCE(UIReset);
|
||||
@ -475,10 +476,6 @@ nsStyleContext::CalcStyleDifference(nsStyleContext* aOther)
|
||||
DO_STRUCT_DIFFERENCE(Position);
|
||||
DO_STRUCT_DIFFERENCE(TextReset);
|
||||
|
||||
// Outline needs to update the overflow and repaint.
|
||||
maxHint = nsChangeHint(NS_STYLE_HINT_VISUAL | nsChangeHint_UpdateOverflow);
|
||||
DO_STRUCT_DIFFERENCE(Outline);
|
||||
|
||||
// Most backgrounds only require a re-render (i.e., a VISUAL change), but
|
||||
// backgrounds using -moz-element need to reset SVG effects, too.
|
||||
maxHint = nsChangeHint(NS_STYLE_HINT_VISUAL | nsChangeHint_UpdateEffects);
|
||||
|
@ -670,7 +670,7 @@ nsChangeHint nsStyleOutline::CalcDifference(const nsStyleOutline& aOther) const
|
||||
(outlineIsVisible && (mOutlineOffset != aOther.mOutlineOffset ||
|
||||
mOutlineWidth != aOther.mOutlineWidth ||
|
||||
mTwipsPerPixel != aOther.mTwipsPerPixel))) {
|
||||
return NS_CombineHint(nsChangeHint_UpdateOverflow, nsChangeHint_RepaintFrame);
|
||||
return NS_CombineHint(nsChangeHint_ReflowFrame, nsChangeHint_RepaintFrame);
|
||||
}
|
||||
if ((mOutlineStyle != aOther.mOutlineStyle) ||
|
||||
(mOutlineColor != aOther.mOutlineColor) ||
|
||||
@ -684,7 +684,7 @@ nsChangeHint nsStyleOutline::CalcDifference(const nsStyleOutline& aOther) const
|
||||
/* static */
|
||||
nsChangeHint nsStyleOutline::MaxDifference()
|
||||
{
|
||||
return NS_CombineHint(nsChangeHint_UpdateOverflow, nsChangeHint_RepaintFrame);
|
||||
return NS_CombineHint(nsChangeHint_ReflowFrame, nsChangeHint_RepaintFrame);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user