Make sure empty tables honor CSS-specified heights when they have no rows or section...
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Apr 2005 22:00:16 +0000 (22:00 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Apr 2005 22:00:16 +0000 (22:00 +0000)
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

WebCore/ChangeLog-2005-08-23
WebCore/khtml/rendering/render_table.cpp

index b05b03b3ebd7f2aff119784a884e10a6f79b48ea..d1e3c6f7dfc3180769167ebcd3f74cc5c26bd720 100644 (file)
@@ -1,3 +1,11 @@
+2005-04-15  David Hyatt  <hyatt@apple.com>
+
+       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  <hyatt@apple.com>
 
        Fix for row 13 of the Acid2 test.  Change HTML comment parsing in strict mode to do proper SGML parsing,
index 18ff50c33e75eb84a435d14450badd5087b9c5e2..7764c4ec098e01afb1874eb1cb835e7fd5392d30 100644 (file)
@@ -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();