| 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 Apple Inc. All rights reserv
ed. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 | 280 |
| 281 // Note MSVC will only pack members if they have identical types, hence we u
se unsigned instead of bool here. | 281 // Note MSVC will only pack members if they have identical types, hence we u
se unsigned instead of bool here. |
| 282 unsigned m_column : 29; | 282 unsigned m_column : 29; |
| 283 unsigned m_cellWidthChanged : 1; | 283 unsigned m_cellWidthChanged : 1; |
| 284 unsigned m_hasColSpan: 1; | 284 unsigned m_hasColSpan: 1; |
| 285 unsigned m_hasRowSpan: 1; | 285 unsigned m_hasRowSpan: 1; |
| 286 int m_intrinsicPaddingBefore; | 286 int m_intrinsicPaddingBefore; |
| 287 int m_intrinsicPaddingAfter; | 287 int m_intrinsicPaddingAfter; |
| 288 }; | 288 }; |
| 289 | 289 |
| 290 inline RenderTableCell* toRenderTableCell(RenderObject* object) | 290 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableCell, isTableCell()); |
| 291 { | |
| 292 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableCell()); | |
| 293 return static_cast<RenderTableCell*>(object); | |
| 294 } | |
| 295 | |
| 296 inline const RenderTableCell* toRenderTableCell(const RenderObject* object) | |
| 297 { | |
| 298 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableCell()); | |
| 299 return static_cast<const RenderTableCell*>(object); | |
| 300 } | |
| 301 | |
| 302 // This will catch anyone doing an unnecessary cast. | |
| 303 void toRenderTableCell(const RenderTableCell*); | |
| 304 | 291 |
| 305 } // namespace WebCore | 292 } // namespace WebCore |
| 306 | 293 |
| 307 #endif // RenderTableCell_h | 294 #endif // RenderTableCell_h |
| OLD | NEW |