Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1652)

Unified Diff: Source/core/rendering/RenderObject.cpp

Issue 23628004: Tables with display:inline rendered in wrong position. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/platform/linux/fast/table/table-display-inline-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderObject.cpp
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
index bd3a26ede8eb02c0487d390342d6848837dac644..6e30912832b1caa0af214ac877f1a8d07dc72fce 100644
--- a/Source/core/rendering/RenderObject.cpp
+++ b/Source/core/rendering/RenderObject.cpp
@@ -166,6 +166,8 @@ RenderObject* RenderObject::createObject(Element* element, RenderStyle* style)
// treat <rt> as ruby text ONLY if it still has its default treatment of block
if (element->hasTagName(rtTag) && style->display() == BLOCK)
return new RenderRubyText(element);
+ if (element->hasTagName(tableTag) && style->display() == INLINE)
+ return new RenderTable(element);
esprehn 2013/08/28 18:17:54 This does not appear correct, if you make a table
suchit.agrawal 2013/08/29 04:31:09 I have tried this example and check the behavior.
suchit.agrawal 2013/08/29 05:49:05 Our previous behavior of this example was wrong. '
if (RuntimeEnabledFeatures::cssRegionsEnabled() && style->isDisplayRegionType() && !style->regionThread().isEmpty() && doc->renderView())
return new RenderRegion(element, 0);
« no previous file with comments | « LayoutTests/platform/linux/fast/table/table-display-inline-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698