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

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

Issue 53373003: Remove display:run-in as per https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/_tHSX… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix test Created 7 years, 2 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 | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/RenderObjectChildList.cpp » ('j') | 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 3d954cb794ed7849745b14f672c1601dfaa9d0a6..4d3dab7f8b2c946973bf55cc2dba9a8ccebf2e10 100644
--- a/Source/core/rendering/RenderObject.cpp
+++ b/Source/core/rendering/RenderObject.cpp
@@ -172,9 +172,7 @@ RenderObject* RenderObject::createObject(Element* element, RenderStyle* style)
if (RuntimeEnabledFeatures::cssRegionsEnabled() && style->isDisplayRegionType() && style->hasFlowFrom() && doc.renderView())
return new RenderRegion(element, 0);
- if (style->display() == RUN_IN)
- UseCounter::count(doc, UseCounter::CSSDisplayRunIn);
- else if (style->display() == COMPACT)
+ if (style->display() == COMPACT)
UseCounter::count(doc, UseCounter::CSSDisplayCompact);
switch (style->display()) {
@@ -184,7 +182,6 @@ RenderObject* RenderObject::createObject(Element* element, RenderStyle* style)
return new RenderInline(element);
case BLOCK:
case INLINE_BLOCK:
- case RUN_IN:
case COMPACT:
if ((!style->hasAutoColumnCount() || !style->hasAutoColumnWidth()) && doc.regionBasedColumnsEnabled())
return new RenderMultiColumnBlock(element);
@@ -3303,11 +3300,6 @@ bool RenderObject::canHaveGeneratedChildren() const
return canHaveChildren();
}
-bool RenderObject::canBeReplacedWithInlineRunIn() const
-{
- return true;
-}
-
void RenderObject::setNeedsBoundariesUpdate()
{
if (RenderObject* renderer = parent())
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/RenderObjectChildList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698