Bug 368600 - "Table with table-layout: fixed has unconstrained width even when width specified on cell" [p=bernd_mozilla@gmx.de (Bernd) r+sr+a1.9=dbaron]

git-svn-id: svn://10.0.0.236/trunk@237981 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
reed%reedloden.com 2007-10-22 04:40:02 +00:00
parent f94ac57740
commit 36d9c50da8

View File

@ -3530,8 +3530,7 @@ nsTableFrame::IsAutoLayout()
// (at least as long as FixedTableLayoutStrategy::GetPrefWidth returns
// nscoord_MAX)
const nsStyleCoord &width = GetStylePosition()->mWidth;
return (GetStyleDisplay()->mDisplay == NS_STYLE_DISPLAY_INLINE_TABLE &&
width.GetUnit() == eStyleUnit_Auto) ||
return (width.GetUnit() == eStyleUnit_Auto) ||
(width.GetUnit() == eStyleUnit_Enumerated &&
width.GetIntValue() == NS_STYLE_WIDTH_INTRINSIC);
}