Backed out changeset 7362e63c648e (relanding bug 449422)

This commit is contained in:
Justin Dolske
2008-08-13 20:49:57 -07:00
parent 505e5d8c31
commit c2e640288c
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -1413,6 +1413,9 @@ nsTableRowGroupFrame::AppendFrames(nsIAtom* aListName,
for (nsIFrame* rowFrame = aFrameList; rowFrame;
rowFrame = rowFrame->GetNextSibling()) {
if (nsGkAtoms::tableRowFrame == rowFrame->GetType()) {
NS_ASSERTION(NS_STYLE_DISPLAY_TABLE_ROW ==
rowFrame->GetStyleDisplay()->mDisplay,
"wrong display type on rowframe");
rows.AppendElement(rowFrame);
}
}
@@ -1456,6 +1459,9 @@ nsTableRowGroupFrame::InsertFrames(nsIAtom* aListName,
for (nsIFrame* rowFrame = aFrameList; rowFrame;
rowFrame = rowFrame->GetNextSibling()) {
if (nsGkAtoms::tableRowFrame == rowFrame->GetType()) {
NS_ASSERTION(NS_STYLE_DISPLAY_TABLE_ROW ==
rowFrame->GetStyleDisplay()->mDisplay,
"wrong display type on rowframe");
rows.AppendElement(rowFrame);
if (!gotFirstRow) {
((nsTableRowFrame*)rowFrame)->SetFirstInserted(PR_TRUE);