Chromium Code Reviews| Index: Source/core/rendering/RenderObject.cpp |
| diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp |
| index 376a739140520cab245ee520d644e3c46b0efdc8..0f8862f476291f85fbd8e0d09d616a90905591bd 100644 |
| --- a/Source/core/rendering/RenderObject.cpp |
| +++ b/Source/core/rendering/RenderObject.cpp |
| @@ -43,6 +43,7 @@ |
| #include "core/page/FrameView.h" |
| #include "core/page/Page.h" |
| #include "core/page/Settings.h" |
| +#include "core/page/UseCounter.h" |
| #include "core/page/animation/AnimationController.h" |
| #include "core/platform/graphics/FloatQuad.h" |
| #include "core/platform/graphics/GraphicsContext.h" |
| @@ -174,10 +175,14 @@ RenderObject* RenderObject::createObject(Element* element, RenderStyle* style) |
| return 0; |
| case INLINE: |
| return new (arena) RenderInline(element); |
| - case BLOCK: |
| - case INLINE_BLOCK: |
| case RUN_IN: |
| + UseCounter::count(doc, UseCounter::Feature::CSSDisplayRunIn); |
| + // Intentionally fall through. |
| case COMPACT: |
| + UseCounter::count(doc, UseCounter::Feature::CSSDisplayCompact); |
|
eseidel
2013/07/31 16:47:02
Do you really want to count run-in as compact?
ojan
2013/07/31 17:20:10
lol. whoops.
|
| + // Intentionally fall through. |
| + case BLOCK: |
| + case INLINE_BLOCK: |
| if ((!style->hasAutoColumnCount() || !style->hasAutoColumnWidth()) && doc->regionBasedColumnsEnabled()) |
| return new (arena) RenderMultiColumnBlock(element); |
| return new (arena) RenderBlock(element); |