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

Unified Diff: third_party/WebKit/Source/core/css/CSSProperty.cpp

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: Fixed the Windows Failure Created 3 years, 9 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/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();
}

Powered by Google App Engine
This is Rietveld 408576698