mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Make changes in table-layout cause a reframe. b=367375 r+sr=bzbarsky a=schrep
This commit is contained in:
parent
bcbf67300f
commit
1cfa9dcca9
@ -972,14 +972,12 @@ nsStyleTable::nsStyleTable(const nsStyleTable& aSource)
|
||||
nsChangeHint nsStyleTable::CalcDifference(const nsStyleTable& aOther) const
|
||||
{
|
||||
// Changes in mRules may require reframing (if border-collapse stuff changes, for example).
|
||||
if (mRules != aOther.mRules || mSpan != aOther.mSpan)
|
||||
if (mRules != aOther.mRules || mSpan != aOther.mSpan ||
|
||||
mLayoutStrategy != aOther.mLayoutStrategy)
|
||||
return NS_STYLE_HINT_FRAMECHANGE;
|
||||
|
||||
if ((mLayoutStrategy == aOther.mLayoutStrategy) &&
|
||||
(mFrame == aOther.mFrame) &&
|
||||
(mCols == aOther.mCols))
|
||||
return NS_STYLE_HINT_NONE;
|
||||
return NS_STYLE_HINT_REFLOW;
|
||||
if (mFrame != aOther.mFrame || mCols != aOther.mCols)
|
||||
return NS_STYLE_HINT_REFLOW;
|
||||
return NS_STYLE_HINT_NONE;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user