[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/khtml/rendering
From: Germain Garand <germain () ebooksfrance ! com>
Date: 2007-10-22 16:35:06
Message-ID: 1193070906.908174.26375.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 728185 by ggarand:
port WC/r16315/#8126/
patch by David Hyatt <hyatt@apple.com>
"column widths apply to the border boxes of cells"
M +7 -1 render_table.cpp
--- trunk/KDE/kdelibs/khtml/rendering/render_table.cpp #728184:728185
@@ -2315,8 +2315,14 @@
if (colSpan() > 1 || !w.isVariable())
return w;
RenderTableCol* col = table()->colElement(_col);
- if (col)
+ if (col) {
w = col->style()->width();
+
+ // Column widths specified on <col> apply to the border box of the cell.
+ // Percentages don't need to be handled since they're always treated this \
way (even when specified on the cells). + if (w.isFixed() && w.value() > 0)
+ w = Length(qMax(0, w.value() - borderLeft() - borderRight() - \
paddingLeft() - paddingRight()), Fixed); + }
return w;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic