зеркало из https://github.com/mozilla/gecko-dev.git
#33244. changed the default value for empty-cells: 'hide' in quirks mode and 'show' in strict mode.
This commit is contained in:
Родитель
6a76f09450
Коммит
6bf46728ec
|
@ -1110,7 +1110,15 @@ void StyleTableImpl::ResetFrom(const nsStyleTable* aParent, nsIPresContext* aPre
|
|||
}
|
||||
else {
|
||||
mBorderCollapse = NS_STYLE_BORDER_SEPARATE;
|
||||
mEmptyCells = NS_STYLE_TABLE_EMPTY_CELLS_HIDE;
|
||||
|
||||
nsCompatibility compatMode = eCompatibility_Standard;
|
||||
if (aPresContext) {
|
||||
aPresContext->GetCompatibilityMode(&compatMode);
|
||||
}
|
||||
mEmptyCells = (compatMode == eCompatibility_NavQuirks
|
||||
? NS_STYLE_TABLE_EMPTY_CELLS_HIDE // bug 33244
|
||||
: NS_STYLE_TABLE_EMPTY_CELLS_SHOW);
|
||||
|
||||
mCaptionSide = NS_SIDE_TOP;
|
||||
mBorderSpacingX.Reset();
|
||||
mBorderSpacingY.Reset();
|
||||
|
|
|
@ -1110,7 +1110,15 @@ void StyleTableImpl::ResetFrom(const nsStyleTable* aParent, nsIPresContext* aPre
|
|||
}
|
||||
else {
|
||||
mBorderCollapse = NS_STYLE_BORDER_SEPARATE;
|
||||
mEmptyCells = NS_STYLE_TABLE_EMPTY_CELLS_HIDE;
|
||||
|
||||
nsCompatibility compatMode = eCompatibility_Standard;
|
||||
if (aPresContext) {
|
||||
aPresContext->GetCompatibilityMode(&compatMode);
|
||||
}
|
||||
mEmptyCells = (compatMode == eCompatibility_NavQuirks
|
||||
? NS_STYLE_TABLE_EMPTY_CELLS_HIDE // bug 33244
|
||||
: NS_STYLE_TABLE_EMPTY_CELLS_SHOW);
|
||||
|
||||
mCaptionSide = NS_SIDE_TOP;
|
||||
mBorderSpacingX.Reset();
|
||||
mBorderSpacingY.Reset();
|
||||
|
|
|
@ -1110,7 +1110,15 @@ void StyleTableImpl::ResetFrom(const nsStyleTable* aParent, nsIPresContext* aPre
|
|||
}
|
||||
else {
|
||||
mBorderCollapse = NS_STYLE_BORDER_SEPARATE;
|
||||
mEmptyCells = NS_STYLE_TABLE_EMPTY_CELLS_HIDE;
|
||||
|
||||
nsCompatibility compatMode = eCompatibility_Standard;
|
||||
if (aPresContext) {
|
||||
aPresContext->GetCompatibilityMode(&compatMode);
|
||||
}
|
||||
mEmptyCells = (compatMode == eCompatibility_NavQuirks
|
||||
? NS_STYLE_TABLE_EMPTY_CELLS_HIDE // bug 33244
|
||||
: NS_STYLE_TABLE_EMPTY_CELLS_SHOW);
|
||||
|
||||
mCaptionSide = NS_SIDE_TOP;
|
||||
mBorderSpacingX.Reset();
|
||||
mBorderSpacingY.Reset();
|
||||
|
|
Загрузка…
Ссылка в новой задаче