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

Unified Diff: sky/engine/core/css/parser/CSSPropertyParser.cpp

Issue 867903002: Remove UseCounter (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/css/parser/CSSPropertyParser.h ('k') | sky/engine/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/parser/CSSPropertyParser.cpp
diff --git a/sky/engine/core/css/parser/CSSPropertyParser.cpp b/sky/engine/core/css/parser/CSSPropertyParser.cpp
index 6df210f942b52dde759cfe58b9927fb4bf9cc1c6..ae8527eec70af18cc783c48c38e6065530f796ee 100644
--- a/sky/engine/core/css/parser/CSSPropertyParser.cpp
+++ b/sky/engine/core/css/parser/CSSPropertyParser.cpp
@@ -63,7 +63,6 @@
#include "sky/engine/core/css/parser/BisonCSSParser.h"
#include "sky/engine/core/css/parser/CSSParserIdioms.h"
#include "sky/engine/core/css/parser/CSSParserValues.h"
-#include "sky/engine/core/frame/UseCounter.h"
#include "sky/engine/core/html/parser/HTMLParserIdioms.h"
#include "sky/engine/platform/FloatConversion.h"
#include "sky/engine/wtf/BitArray.h"
@@ -401,10 +400,6 @@ bool CSSPropertyParser::parseValue(CSSPropertyID propId)
if (!isInternalPropertyAndValueParsingEnabledForMode(m_context.mode()) && isInternalProperty(propId))
return false;
- // We don't count the UA style sheet in our statistics.
- if (m_context.useCounter())
- m_context.useCounter()->count(m_context, propId);
-
if (!m_valueList)
return false;
@@ -603,12 +598,6 @@ bool CSSPropertyParser::parseValue(CSSPropertyID propId)
return false;
value = m_valueList->current();
}
- if (value && m_context.useCounter()) {
- if (value->id == CSSValueWebkitZoomIn)
- m_context.useCounter()->count(UseCounter::PrefixedCursorZoomIn);
- else if (value->id == CSSValueWebkitZoomOut)
- m_context.useCounter()->count(UseCounter::PrefixedCursorZoomOut);
- }
if (list) {
if (!value)
return false;
« no previous file with comments | « sky/engine/core/css/parser/CSSPropertyParser.h ('k') | sky/engine/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698