Make the CSS 'ch' length unit work in most cases. b=363573 r+sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@217089 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mats.palmgren%bredband.net
2006-12-17 14:06:42 +00:00
parent ae532eaa4c
commit 34a45a87f6
10 changed files with 84 additions and 58 deletions

View File

@@ -183,7 +183,7 @@ GetWidthInfo(nsIRenderingContext *aRenderingContext,
// XXX Should col frame have border/padding considered?
if (aCellFrame) {
nsIFrame::IntrinsicWidthOffsetData offsets =
aCellFrame->IntrinsicWidthOffsets();
aCellFrame->IntrinsicWidthOffsets(aRenderingContext);
// XXX Should we ignore percentage padding?
nscoord add = offsets.hPadding + offsets.hBorder;
minCoord += add;