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

Unified Diff: Source/core/css/parser/CSSPropertyParser.cpp

Issue 292183009: Add UseCounter features for cursor values -webkit-zoom-in/out (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 7 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 | « no previous file | Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSPropertyParser.cpp
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp
index a36a7c2e161c768092e069d40aa87cdbeb8b78d2..2b92b7b471725ed68224d94f1936d01477177946 100644
--- a/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/Source/core/css/parser/CSSPropertyParser.cpp
@@ -667,6 +667,12 @@ bool CSSPropertyParser::parseValue(CSSPropertyID propId, bool important)
return false;
value = m_valueList->next(); // comma
}
+ 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);
Julien - ping for review 2014/05/23 09:47:35 Ideally we would want to send a deprecation messag
philipj_slow 2014/05/23 10:50:46 Oh, hadn't noticed that countDeprecation is going
+ }
if (list) {
if (!value)
return false;
« no previous file with comments | « no previous file | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698