Index: Source/core/rendering/RenderTable.cpp |
diff --git a/Source/core/rendering/RenderTable.cpp b/Source/core/rendering/RenderTable.cpp |
index bf35210b9dc0979ec5491dbce9113e52528b4efd..b18c035e797f308b359db7f2508cfd9de154b8b7 100644 |
--- a/Source/core/rendering/RenderTable.cpp |
+++ b/Source/core/rendering/RenderTable.cpp |
@@ -1422,7 +1422,11 @@ bool RenderTable::nodeAtPoint(const HitTestRequest& request, HitTestResult& resu |
RenderTable* RenderTable::createAnonymousWithParentRenderer(const RenderObject* parent) |
{ |
- RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(parent->style(), TABLE); |
+ RefPtr<RenderStyle> newStyle; |
+ if (parent->isInline() && !parent->isReplaced()) |
+ newStyle = RenderStyle::createAnonymousStyleWithDisplay(parent->style(), INLINE_TABLE); |
+ else |
+ newStyle = RenderStyle::createAnonymousStyleWithDisplay(parent->style(), TABLE); |
RenderTable* newTable = new RenderTable(0); |
newTable->setDocumentForAnonymous(&parent->document()); |
newTable->setStyle(newStyle.release()); |