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

Unified Diff: third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.cpp

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: All windows error are Resolved now. 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/resolver/MatchedPropertiesCache.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.cpp b/third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.cpp
index cec28d7dd8d94766b1b44c1469c58153c564e0db..f5d830ea9306195d9222af016ceba0cf757e6c1a 100644
--- a/third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.cpp
@@ -60,13 +60,13 @@ const CachedMatchedProperties* MatchedPropertiesCache::find(
unsigned hash,
const StyleResolverState& styleResolverState,
const MatchedPropertiesVector& properties) {
- ASSERT(hash);
+ DCHECK(hash);
Cache::iterator it = m_cache.find(hash);
if (it == m_cache.end())
return nullptr;
CachedMatchedProperties* cacheItem = it->value.get();
- ASSERT(cacheItem);
+ DCHECK(cacheItem);
size_t size = properties.size();
if (size != cacheItem->matchedProperties.size())
@@ -85,7 +85,7 @@ void MatchedPropertiesCache::add(const ComputedStyle& style,
const ComputedStyle& parentStyle,
unsigned hash,
const MatchedPropertiesVector& properties) {
- ASSERT(hash);
+ DCHECK(hash);
Cache::AddResult addResult = m_cache.insert(hash, nullptr);
if (addResult.isNewEntry)
addResult.storedValue->value = new CachedMatchedProperties;

Powered by Google App Engine
This is Rietveld 408576698