From: hyatt Date: Fri, 15 Apr 2005 22:00:16 +0000 (+0000) Subject: Make sure empty tables honor CSS-specified heights when they have no rows or section... X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=002ce0a37197a2cbac102be08d85b9c791e30649 Make sure empty tables honor CSS-specified heights when they have no rows or sections. This is done only in strict mode, since it is not compatible with WinIE. * khtml/rendering/render_table.cpp: (RenderTable::layout): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9022 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23 index b05b03b3ebd7..d1e3c6f7dfc3 100644 --- a/WebCore/ChangeLog-2005-08-23 +++ b/WebCore/ChangeLog-2005-08-23 @@ -1,3 +1,11 @@ +2005-04-15 David Hyatt + + Make sure empty tables honor CSS-specified heights when they have no rows or sections. This is done only + in strict mode, since it is not compatible with WinIE. + + * khtml/rendering/render_table.cpp: + (RenderTable::layout): + 2005-04-15 David Hyatt Fix for row 13 of the Acid2 test. Change HTML comment parsing in strict mode to do proper SGML parsing, diff --git a/WebCore/khtml/rendering/render_table.cpp b/WebCore/khtml/rendering/render_table.cpp index 18ff50c33e75..7764c4ec098e 100644 --- a/WebCore/khtml/rendering/render_table.cpp +++ b/WebCore/khtml/rendering/render_table.cpp @@ -307,6 +307,11 @@ void RenderTable::layout() firstBody->calcRowHeight(); firstBody->layoutRows( th - calculatedHeight ); } + else if (!style()->htmlHacks()) { + // Completely empty tables (with no sections or anything) should at least honor specified height + // in strict mode. + m_height += th; + } } int bl = borderLeft();