Index: Source/core/layout/LayoutBlock.cpp |
diff --git a/Source/core/layout/LayoutBlock.cpp b/Source/core/layout/LayoutBlock.cpp |
index dbabb45d2be674711d78c4a6569a463401c31789..845054173dbf0937737bdc10aa13238598fa3ce6 100644 |
--- a/Source/core/layout/LayoutBlock.cpp |
+++ b/Source/core/layout/LayoutBlock.cpp |
@@ -1132,14 +1132,8 @@ void LayoutBlock::removeChild(LayoutObject* oldChild) |
LayoutBlock* blockChildrenBlock = prev->childrenInline() ? nextBlock : prevBlock; |
// Place the inline children block inside of the block children block instead of deleting it. |
- // In order to reuse it, we have to reset it to just be a generic anonymous block. Make sure |
- // to clear out inherited column properties by just making a new style, and to also clear the |
- // column span flag if it is set. |
ASSERT(!inlineChildrenBlock->continuation()); |
- RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisplay(styleRef(), BLOCK); |
- // Cache this value as it might get changed in setStyle() call. |
bool inlineChildrenBlockHasLayer = inlineChildrenBlock->hasLayer(); |
dsinclair
2015/06/04 16:35:57
Do we still need this intermediary, we aren't call
mstensho (USE GERRIT)
2015/06/04 16:43:40
Don't really need it, but it's used further below
|
- inlineChildrenBlock->setStyle(newStyle); |
children()->removeChildNode(this, inlineChildrenBlock, inlineChildrenBlockHasLayer); |
// Now just put the inlineChildrenBlock inside the blockChildrenBlock. |