Changeset 143534 in webkit
- Timestamp:
- Feb 20, 2013 4:32:33 PM (11 years ago)
- Location:
- branches/chromium/1410
- Files:
-
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/chromium/1410/Source/WebCore/rendering/RenderTable.cpp
r140479 r143534 274 274 setLogicalWidth(max<int>(logicalWidth(), minPreferredLogicalWidth())); 275 275 276 277 // Ensure we aren't bigger than our max-width style.278 Length styleMaxLogicalWidth = style()->logicalMaxWidth();279 if (styleMaxLogicalWidth.isSpecified() && !styleMaxLogicalWidth.isNegative()) {280 LayoutUnit computedMaxLogicalWidth = convertStyleLogicalWidthToComputedWidth(styleMaxLogicalWidth, availableLogicalWidth);281 setLogicalWidth(min<int>(logicalWidth(), computedMaxLogicalWidth));282 }283 284 276 // Ensure we aren't smaller than our min-width style. 285 277 Length styleMinLogicalWidth = style()->logicalMinWidth(); 286 if (styleMinLogicalWidth.isSpecified() && !styleMinLogicalWidth.isNegative()) { 287 LayoutUnit computedMinLogicalWidth = convertStyleLogicalWidthToComputedWidth(styleMinLogicalWidth, availableLogicalWidth); 288 setLogicalWidth(max<int>(logicalWidth(), computedMinLogicalWidth)); 289 } 278 if (styleMinLogicalWidth.isSpecified() && styleMinLogicalWidth.isPositive()) 279 setLogicalWidth(max<int>(logicalWidth(), convertStyleLogicalWidthToComputedWidth(styleMinLogicalWidth, availableLogicalWidth))); 290 280 291 281 // Finally, with our true width determined, compute our margins for real.
Note: See TracChangeset
for help on using the changeset viewer.