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

Unified Diff: third_party/WebKit/Source/core/frame/UseCounter.cpp

Issue 2228313002: Make a function to query whether a CSSPropertyID is valid and whether it has a name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@asan
Patch Set: Adjust animation dchecks Created 4 years, 4 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
Index: third_party/WebKit/Source/core/frame/UseCounter.cpp
diff --git a/third_party/WebKit/Source/core/frame/UseCounter.cpp b/third_party/WebKit/Source/core/frame/UseCounter.cpp
index 3f8b28145a80dd664e03efecd65de04f7d4df42d..544635c1487b36a984da220ffa40cd8efc55a637 100644
--- a/third_party/WebKit/Source/core/frame/UseCounter.cpp
+++ b/third_party/WebKit/Source/core/frame/UseCounter.cpp
@@ -745,8 +745,7 @@ void UseCounter::countCrossOriginIframe(const Document& document, Feature featur
void UseCounter::count(CSSParserMode cssParserMode, CSSPropertyID feature)
{
- ASSERT(feature >= firstCSSProperty);
- ASSERT(feature <= lastUnresolvedCSSProperty);
+ DCHECK(propertyHasName(feature));
if (!isUseCounterEnabledForMode(cssParserMode) || m_muteCount)
return;

Powered by Google App Engine
This is Rietveld 408576698