Changeset 16315 in webkit


Ignore:
Timestamp:
Sep 11, 2006 9:52:50 PM (18 years ago)
Author:
hyatt
Message:

Fix for bug 8126, column widths apply to the border boxes of cells.

Reviewed by aroben

  • rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::styleOrColWidth):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r16309 r16315  
     12006-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
    1102006-09-11  Nikolas Zimmermann  <zimmermann@kde.org>
    211
  • trunk/WebCore/rendering/RenderTableCell.cpp

    r15253 r16315  
    8181        return w;
    8282    RenderTableCol* col = table()->colElement(_col);
    83     if (col)
     83    if (col) {
    8484        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    }
    8592    return w;
    8693}
Note: See TracChangeset for help on using the changeset viewer.