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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTableRow.h

Issue 2770123003: Replace ASSERT with DCHECK in core/layout/ excluding subdirs (Closed)
Patch Set: Split some DCHECKs and add DCHECK_ops wherever possible 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 void setRowIndex(unsigned rowIndex) { 87 void setRowIndex(unsigned rowIndex) {
88 if (UNLIKELY(rowIndex > maxRowIndex)) 88 if (UNLIKELY(rowIndex > maxRowIndex))
89 CRASH(); 89 CRASH();
90 90
91 m_rowIndex = rowIndex; 91 m_rowIndex = rowIndex;
92 } 92 }
93 93
94 bool rowIndexWasSet() const { return m_rowIndex != unsetRowIndex; } 94 bool rowIndexWasSet() const { return m_rowIndex != unsetRowIndex; }
95 unsigned rowIndex() const { 95 unsigned rowIndex() const {
96 ASSERT(rowIndexWasSet()); 96 DCHECK(rowIndexWasSet());
97 ASSERT( 97 DCHECK(
98 !section() || 98 !section() ||
99 !section() 99 !section()
100 ->needsCellRecalc()); // index may be bogus if cells need recalc. 100 ->needsCellRecalc()); // index may be bogus if cells need recalc.
101 return m_rowIndex; 101 return m_rowIndex;
102 } 102 }
103 103
104 const BorderValue& borderAdjoiningTableStart() const { 104 const BorderValue& borderAdjoiningTableStart() const {
105 if (section()->hasSameDirectionAs(table())) 105 if (section()->hasSameDirectionAs(table()))
106 return style()->borderStart(); 106 return style()->borderStart();
107 107
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 return toLayoutTableRow(firstChild()); 195 return toLayoutTableRow(firstChild());
196 } 196 }
197 197
198 inline LayoutTableRow* LayoutTableSection::lastRow() const { 198 inline LayoutTableRow* LayoutTableSection::lastRow() const {
199 return toLayoutTableRow(lastChild()); 199 return toLayoutTableRow(lastChild());
200 } 200 }
201 201
202 } // namespace blink 202 } // namespace blink
203 203
204 #endif // LayoutTableRow_h 204 #endif // LayoutTableRow_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCol.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableRow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698