Crash in WebCore::RenderTableSection::addChild due to assert failure
[WebKit-https.git] / Source / WebCore / rendering / RenderTable.cpp
index 7c5887f136cbec292e4f988dba0cef98f27e8a61..5c4dfb1a61e357f4f166d051e06f6ec5dcbd22ab 100644 (file)
@@ -186,8 +186,7 @@ void RenderTable::addChild(RenderObject* child, RenderObject* beforeChild)
 
     if (beforeChild && !beforeChild->isAnonymous() && beforeChild->parent() == this) {
         RenderObject* section = beforeChild->previousSibling();
-        if (section && section->isTableSection()) {
-            ASSERT(section->isAnonymous());
+        if (section && section->isTableSection() && section->isAnonymous()) {
             section->addChild(child);
             return;
         }