mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Dynamic changes to border-collapse should produce the right hint. Bug 191794,
r=bernd, sr=dbaron, a=asa
This commit is contained in:
parent
5cefa814c3
commit
3d685b697d
@ -931,8 +931,15 @@ nsStyleTableBorder::nsStyleTableBorder(const nsStyleTableBorder& aSource)
|
||||
|
||||
nsChangeHint nsStyleTableBorder::CalcDifference(const nsStyleTableBorder& aOther) const
|
||||
{
|
||||
if ((mBorderCollapse == aOther.mBorderCollapse) &&
|
||||
(mCaptionSide == aOther.mCaptionSide) &&
|
||||
// Border-collapse changes need a reframe, because we use a different frame
|
||||
// class for table cells in the collapsed border model. This is used to
|
||||
// conserve memory when using the separated border model (collapsed borders
|
||||
// require extra state to be stored).
|
||||
if (mBorderCollapse != aOther.mBorderCollapse) {
|
||||
return NS_STYLE_HINT_FRAMECHANGE;
|
||||
}
|
||||
|
||||
if ((mCaptionSide == aOther.mCaptionSide) &&
|
||||
(mBorderSpacingX == aOther.mBorderSpacingX) &&
|
||||
(mBorderSpacingY == aOther.mBorderSpacingY)) {
|
||||
if (mEmptyCells == aOther.mEmptyCells)
|
||||
|
@ -931,8 +931,15 @@ nsStyleTableBorder::nsStyleTableBorder(const nsStyleTableBorder& aSource)
|
||||
|
||||
nsChangeHint nsStyleTableBorder::CalcDifference(const nsStyleTableBorder& aOther) const
|
||||
{
|
||||
if ((mBorderCollapse == aOther.mBorderCollapse) &&
|
||||
(mCaptionSide == aOther.mCaptionSide) &&
|
||||
// Border-collapse changes need a reframe, because we use a different frame
|
||||
// class for table cells in the collapsed border model. This is used to
|
||||
// conserve memory when using the separated border model (collapsed borders
|
||||
// require extra state to be stored).
|
||||
if (mBorderCollapse != aOther.mBorderCollapse) {
|
||||
return NS_STYLE_HINT_FRAMECHANGE;
|
||||
}
|
||||
|
||||
if ((mCaptionSide == aOther.mCaptionSide) &&
|
||||
(mBorderSpacingX == aOther.mBorderSpacingX) &&
|
||||
(mBorderSpacingY == aOther.mBorderSpacingY)) {
|
||||
if (mEmptyCells == aOther.mEmptyCells)
|
||||
|
Loading…
Reference in New Issue
Block a user