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

Unified Diff: third_party/WebKit/Source/core/css/CSSPropertyIDTemplates.h

Issue 2701353002: Make explicit constant for num of CSSPropertyIDs (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
Index: third_party/WebKit/Source/core/css/CSSPropertyIDTemplates.h
diff --git a/third_party/WebKit/Source/core/css/CSSPropertyIDTemplates.h b/third_party/WebKit/Source/core/css/CSSPropertyIDTemplates.h
index 7c95cbe5c3be235ebdc0b384455b55db0336236b..b2e949e647ada173479d92103572422debc13759 100644
--- a/third_party/WebKit/Source/core/css/CSSPropertyIDTemplates.h
+++ b/third_party/WebKit/Source/core/css/CSSPropertyIDTemplates.h
@@ -19,11 +19,10 @@ struct HashTraits<blink::CSSPropertyID>
: GenericHashTraits<blink::CSSPropertyID> {
static const bool emptyValueIsZero = true;
static void constructDeletedValue(blink::CSSPropertyID& slot, bool) {
- slot =
- static_cast<blink::CSSPropertyID>(blink::lastUnresolvedCSSProperty + 1);
+ slot = static_cast<blink::CSSPropertyID>(blink::numCSSPropertyIDs);
}
static bool isDeletedValue(blink::CSSPropertyID value) {
- return value == (blink::lastUnresolvedCSSProperty + 1);
+ return value == blink::numCSSPropertyIDs;
}
};
} // namespace WTF

Powered by Google App Engine
This is Rietveld 408576698