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

Unified Diff: third_party/WebKit/Source/core/style/GridPosition.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/GridPosition.h
diff --git a/third_party/WebKit/Source/core/style/GridPosition.h b/third_party/WebKit/Source/core/style/GridPosition.h
index 3de9338e8a9787ed57c46912d55e77b878f95287..d072f14da650529bbd6ccae35dbe9d8bde0f41b9 100644
--- a/third_party/WebKit/Source/core/style/GridPosition.h
+++ b/third_party/WebKit/Source/core/style/GridPosition.h
@@ -82,18 +82,18 @@ class GridPosition {
}
int integerPosition() const {
- ASSERT(type() == ExplicitPosition);
+ DCHECK_EQ(type(), ExplicitPosition);
return m_integerPosition;
}
AtomicString namedGridLine() const {
- ASSERT(type() == ExplicitPosition || type() == SpanPosition ||
+ DCHECK(type() == ExplicitPosition || type() == SpanPosition ||
type() == NamedGridAreaPosition);
return m_namedGridLine;
}
int spanPosition() const {
- ASSERT(type() == SpanPosition);
+ DCHECK_EQ(type(), SpanPosition);
return m_integerPosition;
}
« no previous file with comments | « third_party/WebKit/Source/core/style/GridLength.h ('k') | third_party/WebKit/Source/core/style/GridPositionsResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698