diff --git a/layout/tables/BasicTableLayoutStrategy.cpp b/layout/tables/BasicTableLayoutStrategy.cpp index cd33942ef00..ede55ba8ab2 100644 --- a/layout/tables/BasicTableLayoutStrategy.cpp +++ b/layout/tables/BasicTableLayoutStrategy.cpp @@ -159,7 +159,7 @@ GetWidthInfo(nsIRenderingContext *aRenderingContext, nsStyleCoord maxWidth(aStylePos->mMaxWidth); if (maxWidth.GetUnit() == eStyleUnit_Enumerated) { if (!aIsCell || maxWidth.GetIntValue() == NS_STYLE_WIDTH_FILL) - maxWidth.Reset(); + maxWidth.SetNoneValue(); else if (maxWidth.GetIntValue() == NS_STYLE_WIDTH_SHRINK_WRAP) // for 'max-width', '-moz-shrink-wrap' is like // '-moz-intrinsic'