| Index: Source/WebCore/rendering/AutoTableLayout.cpp
 | 
| ===================================================================
 | 
| --- Source/WebCore/rendering/AutoTableLayout.cpp	(revision 120655)
 | 
| +++ Source/WebCore/rendering/AutoTableLayout.cpp	(working copy)
 | 
| @@ -251,8 +251,8 @@
 | 
|  
 | 
|      if (scaleColumns) {
 | 
|          maxNonPercent = maxNonPercent * 100 / max(remainingPercent, epsilon);
 | 
| -        maxWidth = max<int>(maxWidth, static_cast<int>(min(maxNonPercent, MAX_LAYOUT_UNIT / 2.0f)));
 | 
| -        maxWidth = max<int>(maxWidth, static_cast<int>(min(maxPercent, MAX_LAYOUT_UNIT / 2.0f)));
 | 
| +        maxWidth = max<int>(maxWidth, static_cast<int>(min(maxNonPercent, static_cast<float>(tableMaxWidth))));
 | 
| +        maxWidth = max<int>(maxWidth, static_cast<int>(min(maxPercent, static_cast<float>(tableMaxWidth))));
 | 
|      }
 | 
|  
 | 
|      maxWidth = max<int>(maxWidth, spanMaxLogicalWidth);
 | 
| @@ -267,7 +267,7 @@
 | 
|          maxWidth = minWidth;
 | 
|      } else if (!remainingPercent && maxNonPercent) {
 | 
|          // if there was no remaining percent, maxWidth is invalid
 | 
| -        maxWidth = MAX_LAYOUT_UNIT;
 | 
| +        maxWidth = tableMaxWidth;
 | 
|      }
 | 
|  
 | 
|      Length tableLogicalMinWidth = m_table->style()->logicalMinWidth();
 | 
| 
 |