diff --git a/layout/tables/BasicTableLayoutStrategy.cpp b/layout/tables/BasicTableLayoutStrategy.cpp index 3a9d76ae9b6..608a696b8d0 100644 --- a/layout/tables/BasicTableLayoutStrategy.cpp +++ b/layout/tables/BasicTableLayoutStrategy.cpp @@ -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?