Changeset 16315 in webkit
- Timestamp:
- Sep 11, 2006 9:52:50 PM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r16309 r16315 1 2006-09-11 David Hyatt <hyatt@apple.com> 2 3 Fix for bug 8126, column widths apply to the border boxes of cells. 4 5 Reviewed by aroben 6 7 * rendering/RenderTableCell.cpp: 8 (WebCore::RenderTableCell::styleOrColWidth): 9 1 10 2006-09-11 Nikolas Zimmermann <zimmermann@kde.org> 2 11 -
trunk/WebCore/rendering/RenderTableCell.cpp
r15253 r16315 81 81 return w; 82 82 RenderTableCol* col = table()->colElement(_col); 83 if (col) 83 if (col) { 84 84 w = col->style()->width(); 85 86 // Column widths specified on <col> apply to the border box of the cell. 87 // Percentages don't need to be handled since they're always treated this way (even when specified on the cells). 88 // See Bugzilla bug 8126 for details. 89 if (w.isFixed() && w.value() > 0) 90 w = Length(max(0, w.value() - borderLeft() - borderRight() - paddingLeft() - paddingRight()), Fixed); 91 } 85 92 return w; 86 93 }
Note: See TracChangeset
for help on using the changeset viewer.