merge to tip

This commit is contained in:
Doug Turner 2008-11-03 18:53:27 +00:00
commit 86b7b4a27b

View File

@ -215,7 +215,10 @@ nsTableColGroupFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
if (tableFrame->IsBorderCollapse() &&
tableFrame->BCRecalcNeeded(aOldStyleContext, GetStyleContext())) {
nsRect damageArea(GetFirstColumn()->GetColIndex(), 0, GetColCount(),
PRInt32 colCount = GetColCount();
if (!colCount)
return; // this is a degenerated colgroup
nsRect damageArea(GetFirstColumn()->GetColIndex(), 0, colCount,
tableFrame->GetRowCount());
tableFrame->SetBCDamageArea(damageArea);
}