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

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

Issue 1999493003: Count usage of :read-only and :read-write CSS selectors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 | 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/CSSSelectorParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
index 5b1effe33c5c5223cc379b57c484b80885f365fb..d2832746675a6d646508a768e0d27e24c3674349 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp
@@ -60,6 +60,14 @@ static void recordSelectorStats(const CSSParserContext& context, const CSSSelect
if (context.mode() != UASheetMode)
feature = UseCounter::CSSSelectorInternalPseudoSpatialNavigationFocus;
break;
+ case CSSSelector::PseudoReadOnly:
+ if (context.mode() != UASheetMode)
+ feature = UseCounter::CSSSelectorPseudoReadOnly;
+ break;
+ case CSSSelector::PseudoReadWrite:
+ if (context.mode() != UASheetMode)
+ feature = UseCounter::CSSSelectorPseudoReadWrite;
+ 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