Blink changes need to reflow. Bug 236897, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@155815 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1311,8 +1311,14 @@ nsChangeHint nsStyleTextReset::CalcDifference(const nsStyleTextReset& aOther) co
|
||||
{
|
||||
if (mVerticalAlign == aOther.mVerticalAlign
|
||||
&& mUnicodeBidi == aOther.mUnicodeBidi) {
|
||||
if (mTextDecoration != aOther.mTextDecoration)
|
||||
return NS_STYLE_HINT_VISUAL;
|
||||
if (mTextDecoration != aOther.mTextDecoration) {
|
||||
// Reflow for blink changes, repaint for others
|
||||
return
|
||||
(mTextDecoration & NS_STYLE_TEXT_DECORATION_BLINK) ==
|
||||
(aOther.mTextDecoration & NS_STYLE_TEXT_DECORATION_BLINK) ?
|
||||
NS_STYLE_HINT_VISUAL : NS_STYLE_HINT_REFLOW;
|
||||
}
|
||||
|
||||
return NS_STYLE_HINT_NONE;
|
||||
}
|
||||
return NS_STYLE_HINT_REFLOW;
|
||||
|
||||
@@ -1311,8 +1311,14 @@ nsChangeHint nsStyleTextReset::CalcDifference(const nsStyleTextReset& aOther) co
|
||||
{
|
||||
if (mVerticalAlign == aOther.mVerticalAlign
|
||||
&& mUnicodeBidi == aOther.mUnicodeBidi) {
|
||||
if (mTextDecoration != aOther.mTextDecoration)
|
||||
return NS_STYLE_HINT_VISUAL;
|
||||
if (mTextDecoration != aOther.mTextDecoration) {
|
||||
// Reflow for blink changes, repaint for others
|
||||
return
|
||||
(mTextDecoration & NS_STYLE_TEXT_DECORATION_BLINK) ==
|
||||
(aOther.mTextDecoration & NS_STYLE_TEXT_DECORATION_BLINK) ?
|
||||
NS_STYLE_HINT_VISUAL : NS_STYLE_HINT_REFLOW;
|
||||
}
|
||||
|
||||
return NS_STYLE_HINT_NONE;
|
||||
}
|
||||
return NS_STYLE_HINT_REFLOW;
|
||||
|
||||
Reference in New Issue
Block a user