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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_inline_node.h

Issue 2770203002: Replace DCHECK with DCHECK_op and split some DCHECKs wherever necessary (Closed)
Patch Set: Add few more Created 3 years, 8 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/layout/ng/ng_inline_node.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h b/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h
index b49afb9c855d6297c415b72ded0f84b8dbc748f9..9fca8cce4273e1be36d8f571bb769d9c2f919963 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h
@@ -131,7 +131,7 @@ class NGLayoutInlineItem {
style_(style),
layout_object_(layout_object),
type_(type) {
- DCHECK(end >= start);
+ DCHECK_GE(end, start);
}
NGLayoutInlineItemType Type() const {
@@ -192,7 +192,8 @@ inline void NGLayoutInlineItem::AssertOffset(unsigned offset) const {
}
inline void NGLayoutInlineItem::AssertEndOffset(unsigned offset) const {
- DCHECK(offset >= start_offset_ && offset <= end_offset_);
+ DCHECK_GE(offset, start_offset_);
+ DCHECK_LE(offset, end_offset_);
}
inline void NGInlineNode::AssertOffset(unsigned index, unsigned offset) const {

Powered by Google App Engine
This is Rietveld 408576698