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

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

Issue 2680923004: Add usage counter for each value of webkit-user-modify (Closed)
Patch Set: Created 3 years, 10 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 | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
index 39891d56d9ba28956a75004880692cdf714c4e80..1f6cb3feb3f0e13c068221094bd7277fde26d705 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -2323,6 +2323,24 @@ static void countKeywordOnlyPropertyUsage(CSSPropertyID property,
break;
}
+ case CSSPropertyWebkitUserModify: {
+ switch (valueID) {
+ case CSSValueReadOnly:
+ context->useCounter()->count(UseCounter::CSSValueUserModifyReadOnly);
+ break;
+ case CSSValueReadWrite:
+ context->useCounter()->count(UseCounter::CSSValueUserModifyReadWrite);
+ break;
+ case CSSValueReadWritePlaintextOnly:
+ context->useCounter()->count(
+ UseCounter::CSSValueUserModifyReadWritePlaintextOnly);
+ break;
+ default:
+ NOTREACHED();
+ }
+ break;
+ }
+
default:
break;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698