WebCore:
[WebKit-https.git] / WebCore / rendering / RenderBlock.cpp
index 771f675993c92d443fe5be81abb34b58bc7e100f..a9cabf803757b5acb88886a5d33c861068a6278f 100644 (file)
@@ -288,9 +288,11 @@ void RenderBlock::makeChildrenNonInline(RenderObject *insertionPoint)
 
     m_childrenInline = false;
 
-    deleteLineBoxTree();
-
     RenderObject *child = firstChild();
+    if (!child)
+        return;
+
+    deleteLineBoxTree();
 
     while (child) {
         RenderObject *inlineRunStart, *inlineRunEnd;
@@ -317,6 +319,8 @@ void RenderBlock::makeChildrenNonInline(RenderObject *insertionPoint)
     for (RenderObject *c = firstChild(); c; c = c->nextSibling())
         ASSERT(!c->isInline());
 #endif
+
+    repaint();
 }
 
 void RenderBlock::removeChild(RenderObject *oldChild)