Bug 397448 - "ASSERTION: Doing nscoord addition with values > nscoord_MAX" with percentage margin in table cell. r=roc sr=roc approval19=roc

This commit is contained in:
2007-09-26 09:32:50 -07:00
parent 778bf003cc
commit ccfd2a6bad

View File

@@ -611,7 +611,8 @@ BasicTableLayoutStrategy::ComputeIntrinsicWidths(nsIRenderingContext* aRendering
}
pct_total += p;
} else {
nonpct_pref_total += colFrame->GetPrefCoord();
nonpct_pref_total = NSCoordSaturatingAdd(nonpct_pref_total,
colFrame->GetPrefCoord());
}
}