Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 96 unsigned RowSpan() const { | 96 unsigned RowSpan() const { |
| 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 CHECK(!UNLIKELY(column > kMaxColumnIndex)); |
|
tkent
2017/06/05 01:58:51
UNLIKELY isn't necessary. CHECK() contains it inte
| |
| 107 IMMEDIATE_CRASH(); | |
| 108 | |
| 109 absolute_column_index_ = column; | 107 absolute_column_index_ = column; |
| 110 } | 108 } |
| 111 | 109 |
| 112 bool HasSetAbsoluteColumnIndex() const { | 110 bool HasSetAbsoluteColumnIndex() const { |
| 113 return absolute_column_index_ != kUnsetColumnIndex; | 111 return absolute_column_index_ != kUnsetColumnIndex; |
| 114 } | 112 } |
| 115 | 113 |
| 116 unsigned AbsoluteColumnIndex() const { | 114 unsigned AbsoluteColumnIndex() const { |
| 117 DCHECK(HasSetAbsoluteColumnIndex()); | 115 DCHECK(HasSetAbsoluteColumnIndex()); |
| 118 return absolute_column_index_; | 116 return absolute_column_index_; |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 486 return ToLayoutTableCell(FirstChild()); | 484 return ToLayoutTableCell(FirstChild()); |
| 487 } | 485 } |
| 488 | 486 |
| 489 inline LayoutTableCell* LayoutTableRow::LastCell() const { | 487 inline LayoutTableCell* LayoutTableRow::LastCell() const { |
| 490 return ToLayoutTableCell(LastChild()); | 488 return ToLayoutTableCell(LastChild()); |
| 491 } | 489 } |
| 492 | 490 |
| 493 } // namespace blink | 491 } // namespace blink |
| 494 | 492 |
| 495 #endif // LayoutTableCell_h | 493 #endif // LayoutTableCell_h |
| OLD | NEW |