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

Unified Diff: third_party/WebKit/Source/core/style/DataRef.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/DataRef.h
diff --git a/third_party/WebKit/Source/core/style/DataRef.h b/third_party/WebKit/Source/core/style/DataRef.h
index 9d23272500553d5004a51b46e1a4ce6e644df538..eeba842ac775caedcb49d5e70474b538525a7b9e 100644
--- a/third_party/WebKit/Source/core/style/DataRef.h
+++ b/third_party/WebKit/Source/core/style/DataRef.h
@@ -46,19 +46,19 @@ class DataRef {
}
void init() {
- ASSERT(!m_data);
+ DCHECK(!m_data);
m_data = T::create();
}
bool operator==(const DataRef<T>& o) const {
- ASSERT(m_data);
- ASSERT(o.m_data);
+ DCHECK(m_data);
+ DCHECK(o.m_data);
return m_data == o.m_data || *m_data == *o.m_data;
}
bool operator!=(const DataRef<T>& o) const {
- ASSERT(m_data);
- ASSERT(o.m_data);
+ DCHECK(m_data);
+ DCHECK(o.m_data);
return m_data != o.m_data && *m_data != *o.m_data;
}
« no previous file with comments | « third_party/WebKit/Source/core/style/DataPersistent.h ('k') | third_party/WebKit/Source/core/style/FillLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698