Index: Source/WebCore/rendering/RenderTableCell.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderTableCell.cpp (revision 115614) |
+++ Source/WebCore/rendering/RenderTableCell.cpp (working copy) |
@@ -1118,4 +1118,14 @@ |
setIntrinsicPaddingAfter(intrinsicPaddingAfter() - scrollbarHeight); |
} |
+RenderTableCell* RenderTableCell::createAnonymousWithParentRenderer(const RenderObject* parent) |
+{ |
+ RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyle(parent->style()); |
+ newStyle->setDisplay(TABLE_CELL); |
+ |
+ RenderTableCell* newCell = new (parent->renderArena()) RenderTableCell(parent->document() /* is anonymous */); |
+ newCell->setStyle(newStyle.release()); |
+ return newCell; |
+} |
+ |
} // namespace WebCore |