| 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, 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 LayoutTable* Table() const { return ToLayoutTable(Parent()->Parent()); } | 78 LayoutTable* Table() const { return ToLayoutTable(Parent()->Parent()); } |
| 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 CHECK_LE(row_index, kMaxRowIndex); |
| 89 IMMEDIATE_CRASH(); | |
| 90 | |
| 91 row_index_ = row_index; | 89 row_index_ = row_index; |
| 92 } | 90 } |
| 93 | 91 |
| 94 bool RowIndexWasSet() const { return row_index_ != kUnsetRowIndex; } | 92 bool RowIndexWasSet() const { return row_index_ != kUnsetRowIndex; } |
| 95 unsigned RowIndex() const { | 93 unsigned RowIndex() const { |
| 96 DCHECK(RowIndexWasSet()); | 94 DCHECK(RowIndexWasSet()); |
| 97 DCHECK( | 95 DCHECK( |
| 98 !Section() || | 96 !Section() || |
| 99 !Section() | 97 !Section() |
| 100 ->NeedsCellRecalc()); // index may be bogus if cells need recalc. | 98 ->NeedsCellRecalc()); // index may be bogus if cells need recalc. |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 return ToLayoutTableRow(FirstChild()); | 193 return ToLayoutTableRow(FirstChild()); |
| 196 } | 194 } |
| 197 | 195 |
| 198 inline LayoutTableRow* LayoutTableSection::LastRow() const { | 196 inline LayoutTableRow* LayoutTableSection::LastRow() const { |
| 199 return ToLayoutTableRow(LastChild()); | 197 return ToLayoutTableRow(LastChild()); |
| 200 } | 198 } |
| 201 | 199 |
| 202 } // namespace blink | 200 } // namespace blink |
| 203 | 201 |
| 204 #endif // LayoutTableRow_h | 202 #endif // LayoutTableRow_h |
| OLD | NEW |