Reviewed by Anders.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Jul 2006 09:36:24 +0000 (09:36 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Jul 2006 09:36:24 +0000 (09:36 +0000)
        <rdar://problem/4632144> REGRESSION: table column tests failing as a result of very recent fix

        * rendering/RenderTable.cpp:
        (WebCore::RenderTable::addChild): columns and colgroups are valid children of a table too, not
        just table sections!

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15451 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/rendering/RenderTable.cpp

index 358b3c1153b4bae186ec2a98e98df978937847c7..1156e0ffa1fdd4ba00f0323692b2bbd3d0271de9 100644 (file)
@@ -1,3 +1,13 @@
+2006-07-15  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Anders.
+
+        <rdar://problem/4632144> REGRESSION: table column tests failing as a result of very recent fix
+
+        * rendering/RenderTable.cpp:
+        (WebCore::RenderTable::addChild): columns and colgroups are valid children of a table too, not
+        just table sections!
+
 2006-07-15  Anders Carlsson  <acarlsson@apple.com>
 
         Reviewed by Darin.
index 1f8cdd2574ebe807155005f45f6f25c119a15182..7fc6a947acbaa56e18f2255305e43105843206f0 100644 (file)
@@ -160,7 +160,7 @@ void RenderTable::addChild(RenderObject* child, RenderObject* beforeChild)
     if (!wrapInAnonymousSection) {
         
         // If the next renderer is actually wrapped in an anonymous table section, we need to go up and find that
-        while (beforeChild && !beforeChild->isTableSection())
+        while (beforeChild && !beforeChild->isTableSection() && !beforeChild->isTableCol())
             beforeChild = beforeChild->parent();
 
         RenderContainer::addChild(child, beforeChild);