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

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

Issue 2919443002: Use IMMEDIATE_CRASH() instead of CRASH() directly (Closed)
Patch Set: Use IMMEDIATE_CRASH() instead of CRASH() directly Created 3 years, 6 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 static LayoutTableRow* CreateAnonymous(Document*); 80 static LayoutTableRow* CreateAnonymous(Document*);
81 static LayoutTableRow* CreateAnonymousWithParent(const LayoutObject*); 81 static LayoutTableRow* CreateAnonymousWithParent(const LayoutObject*);
82 LayoutBox* CreateAnonymousBoxWithSameTypeAs( 82 LayoutBox* CreateAnonymousBoxWithSameTypeAs(
83 const LayoutObject* parent) const override { 83 const LayoutObject* parent) const override {
84 return CreateAnonymousWithParent(parent); 84 return CreateAnonymousWithParent(parent);
85 } 85 }
86 86
87 void SetRowIndex(unsigned row_index) { 87 void SetRowIndex(unsigned row_index) {
88 if (UNLIKELY(row_index > kMaxRowIndex)) 88 if (UNLIKELY(row_index > kMaxRowIndex))
89 CRASH(); 89 IMMEDIATE_CRASH();
90 90
91 row_index_ = row_index; 91 row_index_ = row_index;
92 } 92 }
93 93
94 bool RowIndexWasSet() const { return row_index_ != kUnsetRowIndex; } 94 bool RowIndexWasSet() const { return row_index_ != kUnsetRowIndex; }
95 unsigned RowIndex() const { 95 unsigned RowIndex() const {
96 DCHECK(RowIndexWasSet()); 96 DCHECK(RowIndexWasSet());
97 DCHECK( 97 DCHECK(
98 !Section() || 98 !Section() ||
99 !Section() 99 !Section()
(...skipping 95 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/LayoutTableCell.h ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698