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

Unified Diff: third_party/WebKit/Source/core/frame/Deprecation.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/Deprecation.cpp
diff --git a/third_party/WebKit/Source/core/frame/Deprecation.cpp b/third_party/WebKit/Source/core/frame/Deprecation.cpp
index fe52c71871922a46a8d2fab77c162ffea93ff889..4ba8ba4da5c11310d22e4c3d9b824f6f0f359799 100644
--- a/third_party/WebKit/Source/core/frame/Deprecation.cpp
+++ b/third_party/WebKit/Source/core/frame/Deprecation.cpp
@@ -91,15 +91,13 @@ void Deprecation::unmuteForInspector()
void Deprecation::suppress(CSSPropertyID unresolvedProperty)
{
- ASSERT(unresolvedProperty >= firstCSSProperty);
- ASSERT(unresolvedProperty <= lastUnresolvedCSSProperty);
+ DCHECK(propertyHasName(unresolvedProperty));
m_cssPropertyDeprecationBits.quickSet(unresolvedProperty);
}
bool Deprecation::isSuppressed(CSSPropertyID unresolvedProperty)
{
- ASSERT(unresolvedProperty >= firstCSSProperty);
- ASSERT(unresolvedProperty <= lastUnresolvedCSSProperty);
+ DCHECK(propertyHasName(unresolvedProperty));
return m_cssPropertyDeprecationBits.quickGet(unresolvedProperty);
}

Powered by Google App Engine
This is Rietveld 408576698