Index: Source/WebCore/rendering/RenderListItem.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderListItem.cpp (revision 109446) |
+++ Source/WebCore/rendering/RenderListItem.cpp (working copy) |
@@ -217,6 +217,9 @@ |
LayoutStateDisabler layoutStateDisabler(view()); |
updateFirstLetter(); |
m_marker->remove(); |
+ // If markerPar is an anonymous block that will lose all its children, destroy it |
+ if (markerPar && (markerPar != lineBoxParent) && markerPar->isAnonymousBlock() && !(toRenderBlock(markerPar)->firstChild())) |
+ markerPar->destroy(); |
if (!lineBoxParent) |
lineBoxParent = this; |
lineBoxParent->addChild(m_marker, firstNonMarkerChild(lineBoxParent)); |