Backout changeset 1e2b9cdc486b (Bug 248239) due to failure of tests/MochiKit-1.4.2/tests/test_MochiKit-Style.html .

This commit is contained in:
L. David Baron 2012-06-26 18:16:09 -07:00
parent 175d9655de
commit ab299d1ae2
7 changed files with 7 additions and 30 deletions

View File

@ -10,7 +10,6 @@ td, th {
background-color: lime;
width:100px;
height:100px;
-moz-box-sizing:border-box;
}
td {
border-top: 4px solid lime;

View File

@ -11,7 +11,6 @@ td, th {
width:100px;
height:100px;
border:4px solid lime;
-moz-box-sizing:border-box;
}
td {
border-top:hidden;

View File

@ -9,10 +9,10 @@ div {position:absolute; border:green 4px solid}
</head>
<body>
<!-- in standards mode, the height for table cells does not includes the border -->
<!-- the height for table cells includes the border -->
<div>
<table cellspacing="0">
<tr><td style="border:solid 4px orange; height:30px">cell 1</td></tr>
<tr><td style="border:solid 4px orange; height:34px">cell 1</td></tr>
</table>
</div>
</body>

View File

@ -13,7 +13,7 @@ caption {border:solid 4px green}
</head>
<body>
<!-- by default, td has padding of 1px -->
<table style="border-collapse:collapse;"><caption>caption</caption>
<tr><td style="border:solid 4px orange; height:30px">cell 1</td></tr>
</table>

View File

@ -13,7 +13,7 @@ caption {border:solid 4px green}
<table cellspacing="0" cellpadding="0"><caption>caption</caption>
<tr>
<td style="border:solid 4px orange; width:102px; height:32px">cell 1</td>
<td style="border:solid 4px orange; width:102px; height:34px">cell 1</td>
</tr>
</table>
</body>

View File

@ -393,6 +393,7 @@ table[rules][rules="groups"] > tbody {
caption {
display: table-caption;
text-align: center;
-moz-box-sizing: border-box;
}
table[align="center"] > caption {

View File

@ -607,33 +607,11 @@ nsTableRowFrame::CalculateCellActualHeight(nsTableCellFrame* aCellFrame,
PRInt32 rowSpan = tableFrame->GetEffectiveRowSpan(*aCellFrame);
switch (position->mHeight.GetUnit()) {
case eStyleUnit_Coord: {
nscoord outsideBoxSizing = 0;
// In quirks mode, table cell width should be content-box, but height
// should be border-box.
// Because of this historic anomaly, we do not use quirk.css
// (since we can't specify one value of box-sizing for width and another
// for height)
if (PresContext()->CompatibilityMode() != eCompatibility_NavQuirks) {
switch (position->mBoxSizing) {
case NS_STYLE_BOX_SIZING_CONTENT:
outsideBoxSizing = aCellFrame->GetUsedBorderAndPadding().TopBottom();
break;
case NS_STYLE_BOX_SIZING_PADDING:
outsideBoxSizing = aCellFrame->GetUsedBorder().TopBottom();
break;
default:
// NS_STYLE_BOX_SIZING_BORDER
break;
}
}
specifiedHeight = position->mHeight.GetCoordValue() + outsideBoxSizing;
case eStyleUnit_Coord:
specifiedHeight = position->mHeight.GetCoordValue();
if (1 == rowSpan)
SetFixedHeight(specifiedHeight);
break;
}
case eStyleUnit_Percent: {
if (1 == rowSpan)
SetPctHeight(position->mHeight.GetPercentValue());