Bug 720142 - Use nsIntRect for table damage. r=bernd

This commit is contained in:
Mats Palmgren
2012-01-22 23:48:34 +01:00
parent 424d70ca5f
commit aedc830d14
9 changed files with 109 additions and 108 deletions

View File

@@ -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