Index: third_party/WebKit/Source/core/css/CSSProperty.cpp |
diff --git a/third_party/WebKit/Source/core/css/CSSProperty.cpp b/third_party/WebKit/Source/core/css/CSSProperty.cpp |
index df821c4ffe2b6334866e693cf65c48ca854e82b2..e48825d4cd188253ec7b17c0f2aa0e84b3a67691 100644 |
--- a/third_party/WebKit/Source/core/css/CSSProperty.cpp |
+++ b/third_party/WebKit/Source/core/css/CSSProperty.cpp |
@@ -40,8 +40,9 @@ CSSPropertyID StylePropertyMetadata::shorthandID() const { |
Vector<StylePropertyShorthand, 4> shorthands; |
getMatchingShorthandsForLonghand(static_cast<CSSPropertyID>(m_propertyID), |
&shorthands); |
- ASSERT(shorthands.size() && m_indexInShorthandsVector >= 0 && |
- m_indexInShorthandsVector < shorthands.size()); |
+ DCHECK(shorthands.size()); |
+ DCHECK_GE(m_indexInShorthandsVector, 0u); |
+ DCHECK_LT(m_indexInShorthandsVector, shorthands.size()); |
return shorthands.at(m_indexInShorthandsVector).id(); |
} |