| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |