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

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: Revert spurious change Created 4 years, 2 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 1429db445e1b53844228dcdf18a326b29529c7de..efdc481dfc8899178b3e40a6bd80de5f78e87b46 100644
--- a/third_party/WebKit/Source/core/frame/Deprecation.cpp
+++ b/third_party/WebKit/Source/core/frame/Deprecation.cpp
@@ -90,14 +90,12 @@ void Deprecation::unmuteForInspector() {
}
void Deprecation::suppress(CSSPropertyID unresolvedProperty) {
- ASSERT(unresolvedProperty >= firstCSSProperty);
- ASSERT(unresolvedProperty <= lastUnresolvedCSSProperty);
+ DCHECK(isCSSPropertyIDWithName(unresolvedProperty));
m_cssPropertyDeprecationBits.quickSet(unresolvedProperty);
}
bool Deprecation::isSuppressed(CSSPropertyID unresolvedProperty) {
- ASSERT(unresolvedProperty >= firstCSSProperty);
- ASSERT(unresolvedProperty <= lastUnresolvedCSSProperty);
+ DCHECK(isCSSPropertyIDWithName(unresolvedProperty));
return m_cssPropertyDeprecationBits.quickGet(unresolvedProperty);
}
« no previous file with comments | « third_party/WebKit/Source/core/css/StylePropertySerializer.cpp ('k') | third_party/WebKit/Source/core/frame/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698