Fix crash when text is contained inside a table-colgroup.
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Aug 2004 23:23:33 +0000 (23:23 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Aug 2004 23:23:33 +0000 (23:23 +0000)
        Reviewed by john

        * khtml/xml/dom_textimpl.cpp:
        (TextImpl::rendererIsNeeded):

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

WebCore/ChangeLog-2005-08-23
WebCore/khtml/xml/dom_textimpl.cpp

index d8ff8db..432de2f 100644 (file)
@@ -1,3 +1,12 @@
+2004-08-19  David Hyatt  <hyatt@apple.com>
+
+       Fix crash when text is contained inside a table-colgroup.
+       
+        Reviewed by john
+
+        * khtml/xml/dom_textimpl.cpp:
+        (TextImpl::rendererIsNeeded):
+
 2004-08-19  Trey Matteson  <trey@apple.com>
 
        Unexpected errors hit while finding word boundaries, leading to crash.
index c6254e5..b9e5d9a 100644 (file)
@@ -414,7 +414,7 @@ bool TextImpl::rendererIsNeeded(RenderStyle *style)
 
     RenderObject *par = parentNode()->renderer();
     
-    if (par->isTable() || par->isTableRow() || par->isTableSection()) {
+    if (par->isTable() || par->isTableRow() || par->isTableSection() || par->isTableCol()) {
         return false;
     }