Bug 720142 - Use nsIntRect for table damage. r=bernd
This commit is contained in:
@@ -254,8 +254,8 @@ nsTableCellFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
|
||||
GetRowIndex(rowIndex);
|
||||
// row span needs to be clamped as we do not create rows in the cellmap
|
||||
// which do not have cells originating in them
|
||||
nsRect damageArea(colIndex, rowIndex, GetColSpan(), NS_MIN(GetRowSpan(),
|
||||
tableFrame->GetRowCount() - rowIndex));
|
||||
nsIntRect damageArea(colIndex, rowIndex, GetColSpan(),
|
||||
NS_MIN(GetRowSpan(), tableFrame->GetRowCount() - rowIndex));
|
||||
tableFrame->AddBCDamageArea(damageArea);
|
||||
}
|
||||
}
|
||||
@@ -775,7 +775,7 @@ void DebugCheckChildSize(nsIFrame* aChild,
|
||||
{
|
||||
if ((aMet.width < 0) || (aMet.width > PROBABLY_TOO_LARGE)) {
|
||||
printf("WARNING: cell content %p has large width %d \n",
|
||||
static_cast<void*>(aChild), aMet.width);
|
||||
static_cast<void*>(aChild), PRInt32(aMet.width));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user