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

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: fix enum 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 d04650a1b0a7759905ee1efec1f8e5e53b05e254..1a577a5a54e8a64032ac2b26e7b4dd26a3749dd7 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/Partitions.h"
#include "core/platform/graphics/FloatQuad.h"
@@ -164,6 +165,12 @@ RenderObject* RenderObject::createObject(Element* element, RenderStyle* style)
return new RenderRubyText(element);
if (RuntimeEnabledFeatures::cssRegionsEnabled() && style->isDisplayRegionType() && !style->regionThread().isEmpty() && doc->renderView())
return new RenderRegion(element, 0);
+
+ if (style->display() == RUN_IN)
+ UseCounter::count(doc, UseCounter::CSSDisplayRunIn);
+ else if (style->display() == COMPACT)
+ UseCounter::count(doc, UseCounter::CSSDisplayCompact);
+
switch (style->display()) {
case NONE:
return 0;
« 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