Replace PR_MIN/PR_MAX with NS_MIN/NS_MAX. b=512106 r=roc

This commit is contained in:
Mats Palmgren
2009-09-16 17:01:36 +02:00
parent 3ae7f7036a
commit f82eedba5a
81 changed files with 514 additions and 508 deletions

View File

@@ -323,7 +323,7 @@ FixedTableLayoutStrategy::ComputeColumnWidths(const nsHTMLReflowState& aReflowSt
// had percentage widths. The spec doesn't say to do this,
// but we've always done it in the past, and so does WinIE6.
nscoord pctUsed = NSToCoordFloor(pctTotal * float(tableWidth));
nscoord reduce = PR_MIN(pctUsed, -unassignedSpace);
nscoord reduce = NS_MIN(pctUsed, -unassignedSpace);
float reduceRatio = float(reduce) / pctTotal;
for (PRInt32 col = 0; col < colCount; ++col) {
nsTableColFrame *colFrame = mTableFrame->GetColFrame(col);