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

Unified Diff: third_party/WebKit/Source/core/style/DataPersistent.h

Issue 2751653003: Replace ASSERT and ASSERT_NOT_REACHED in core/style/ (Closed)
Patch Set: Replace ASSERT and ASSERT_NOT_REACHED in core/style/ 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/style/DataPersistent.h
diff --git a/third_party/WebKit/Source/core/style/DataPersistent.h b/third_party/WebKit/Source/core/style/DataPersistent.h
index 78ade62015c02ca7b7f23bbf9f493e8ca6fa36b0..1b1167b3a4513d9509fbb0892b8c52240be21582 100644
--- a/third_party/WebKit/Source/core/style/DataPersistent.h
+++ b/third_party/WebKit/Source/core/style/DataPersistent.h
@@ -56,21 +56,21 @@ class DataPersistent {
}
void init() {
- ASSERT(!m_data);
+ DCHECK(!m_data);
m_data = WTF::wrapUnique(new Persistent<T>(T::create()));
m_ownCopy = true;
}
bool operator==(const DataPersistent<T>& o) const {
- ASSERT(m_data);
- ASSERT(o.m_data);
+ DCHECK(m_data);
+ DCHECK(o.m_data);
return m_data->get() == o.m_data->get() ||
*m_data->get() == *o.m_data->get();
}
bool operator!=(const DataPersistent<T>& o) const {
- ASSERT(m_data);
- ASSERT(o.m_data);
+ DCHECK(m_data);
+ DCHECK(o.m_data);
return m_data->get() != o.m_data->get() &&
*m_data->get() != *o.m_data->get();
}
« no previous file with comments | « third_party/WebKit/Source/core/style/CounterDirectives.h ('k') | third_party/WebKit/Source/core/style/DataRef.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698