Index: third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
index e3d3ee7c45f9fdad97222e3257f2b06c046639bc..fc753f2418029465b78be8eca21d457d4d9279c1 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
@@ -680,9 +680,10 @@ void LayoutBlock::collapseAnonymousBlockChild(LayoutBlock* parent, LayoutBlock* |
if (child->beingDestroyed()) |
return; |
parent->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::ChildAnonymousBlockChanged); |
- parent->setChildrenInline(child->childrenInline()); |
child->moveAllChildrenTo(parent, child->nextSibling(), child->hasLayer()); |
+ parent->setChildrenInline(child->childrenInline()); |
+ |
parent->children()->removeChildNode(parent, child, child->hasLayer()); |
child->destroy(); |
} |