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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTableCell.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, 2007, 2009, 2013 Apple Inc. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 if (!has_row_span_) 97 if (!has_row_span_)
98 return 1; 98 return 1;
99 return ParseRowSpanFromDOM(); 99 return ParseRowSpanFromDOM();
100 } 100 }
101 101
102 // Called from HTMLTableCellElement. 102 // Called from HTMLTableCellElement.
103 void ColSpanOrRowSpanChanged(); 103 void ColSpanOrRowSpanChanged();
104 104
105 void SetAbsoluteColumnIndex(unsigned column) { 105 void SetAbsoluteColumnIndex(unsigned column) {
106 if (UNLIKELY(column > kMaxColumnIndex)) 106 if (UNLIKELY(column > kMaxColumnIndex))
107 CRASH(); 107 IMMEDIATE_CRASH();
108 108
109 absolute_column_index_ = column; 109 absolute_column_index_ = column;
110 } 110 }
111 111
112 bool HasSetAbsoluteColumnIndex() const { 112 bool HasSetAbsoluteColumnIndex() const {
113 return absolute_column_index_ != kUnsetColumnIndex; 113 return absolute_column_index_ != kUnsetColumnIndex;
114 } 114 }
115 115
116 unsigned AbsoluteColumnIndex() const { 116 unsigned AbsoluteColumnIndex() const {
117 DCHECK(HasSetAbsoluteColumnIndex()); 117 DCHECK(HasSetAbsoluteColumnIndex());
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 return ToLayoutTableCell(FirstChild()); 486 return ToLayoutTableCell(FirstChild());
487 } 487 }
488 488
489 inline LayoutTableCell* LayoutTableRow::LastCell() const { 489 inline LayoutTableCell* LayoutTableRow::LastCell() const {
490 return ToLayoutTableCell(LastChild()); 490 return ToLayoutTableCell(LastChild());
491 } 491 }
492 492
493 } // namespace blink 493 } // namespace blink
494 494
495 #endif // LayoutTableCell_h 495 #endif // LayoutTableCell_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Text.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableRow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698