Bug 398157: Fix nscoord_MAX arithmetic using NSCoordSaturatingSubtract. r=roc sr=roc a=roc

This commit is contained in:
dholbert@cs.stanford.edu 2007-10-01 14:44:50 -07:00
parent 1666bf09a2
commit 7bd62c18f6

@ -699,7 +699,7 @@ BasicTableLayoutStrategy::ComputeColumnWidths(const nsHTMLReflowState& aReflowSt
subtract += spacing;
}
}
width -= subtract;
width = NSCoordSaturatingSubtract(width, subtract, nscoord_MAX);
min -= subtract;
// XXX is |width| the right basis for percentage widths?