Index: Source/WebCore/rendering/RenderObject.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderObject.cpp (revision 115616) |
+++ Source/WebCore/rendering/RenderObject.cpp (working copy) |
@@ -259,16 +259,6 @@ |
return node() && node()->renderer() == this && node()->hasTagName(marqueeTag); |
} |
-static bool isBeforeAfterContentGeneratedByAncestor(RenderObject* renderer, RenderObject* beforeAfterContent) |
-{ |
- while (renderer) { |
- if (renderer->generatingNode() == beforeAfterContent->generatingNode()) |
- return true; |
- renderer = renderer->parent(); |
- } |
- return false; |
-} |
- |
void RenderObject::addChild(RenderObject* newChild, RenderObject* beforeChild) |
{ |
RenderObjectChildList* children = virtualChildren(); |
@@ -276,17 +266,6 @@ |
if (!children) |
return; |
- RenderObject* beforeContent = 0; |
- bool beforeChildHasBeforeAndAfterContent = false; |
- if (beforeChild && (beforeChild->isTable() || beforeChild->isTableSection() || beforeChild->isTableRow() || beforeChild->isTableCell())) { |
- beforeContent = beforeChild->beforePseudoElementRenderer(); |
- RenderObject* afterContent = beforeChild->afterPseudoElementRenderer(); |
- if (beforeContent && afterContent && isBeforeAfterContentGeneratedByAncestor(this, beforeContent)) { |
- beforeChildHasBeforeAndAfterContent = true; |
- beforeContent->destroy(); |
- } |
- } |
- |
bool needsTable = false; |
if (newChild->isTableCol() && newChild->style()->display() == TABLE_COLUMN_GROUP) |
@@ -335,9 +314,6 @@ |
// and stop creating layers at all for these cases - they're not used anyways. |
if (newChild->hasLayer() && !layerCreationAllowedForSubtree()) |
toRenderBoxModelObject(newChild)->layer()->removeOnlyThisLayer(); |
- |
- if (beforeChildHasBeforeAndAfterContent) |
- children->updateBeforeAfterContent(this, BEFORE); |
} |
void RenderObject::removeChild(RenderObject* oldChild) |