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

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

Issue 21081004: Add UseCounters for display:run-in and display:compact. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: include header Created 7 years, 5 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/page/UseCounter.h ('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 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);
« no previous file with comments | « Source/core/page/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698