mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
bug 462849 degenerated colgroups can be empty r/sr=bzbarsky
This commit is contained in:
parent
7ecefc0b75
commit
aa06438c13
@ -212,10 +212,13 @@ nsTableColGroupFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
|
||||
return;
|
||||
|
||||
nsTableFrame* tableFrame = nsTableFrame::GetTableFrame(this);
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user