| 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, 2010 Apple Inc. All rights reserv
ed. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserv
ed. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 inline RenderTableSection* RenderTable::topSection() const | 343 inline RenderTableSection* RenderTable::topSection() const |
| 344 { | 344 { |
| 345 ASSERT(!needsSectionRecalc()); | 345 ASSERT(!needsSectionRecalc()); |
| 346 if (m_head) | 346 if (m_head) |
| 347 return m_head; | 347 return m_head; |
| 348 if (m_firstBody) | 348 if (m_firstBody) |
| 349 return m_firstBody; | 349 return m_firstBody; |
| 350 return m_foot; | 350 return m_foot; |
| 351 } | 351 } |
| 352 | 352 |
| 353 inline RenderTable* toRenderTable(RenderObject* object) | 353 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTable, isTable()); |
| 354 { | |
| 355 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTable()); | |
| 356 return static_cast<RenderTable*>(object); | |
| 357 } | |
| 358 | |
| 359 inline const RenderTable* toRenderTable(const RenderObject* object) | |
| 360 { | |
| 361 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTable()); | |
| 362 return static_cast<const RenderTable*>(object); | |
| 363 } | |
| 364 | |
| 365 // This will catch anyone doing an unnecessary cast. | |
| 366 void toRenderTable(const RenderTable*); | |
| 367 | 354 |
| 368 } // namespace WebCore | 355 } // namespace WebCore |
| 369 | 356 |
| 370 #endif // RenderTable_h | 357 #endif // RenderTable_h |
| OLD | NEW |