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 Apple Inc. All rights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. |
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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 HashSet<RenderTableCell*> m_overflowingCells; | 301 HashSet<RenderTableCell*> m_overflowingCells; |
302 bool m_forceSlowPaintPathWithOverflowingCell; | 302 bool m_forceSlowPaintPathWithOverflowingCell; |
303 | 303 |
304 bool m_hasMultipleCellLevels; | 304 bool m_hasMultipleCellLevels; |
305 | 305 |
306 // This map holds the collapsed border values for cells with collapsed borde
rs. | 306 // This map holds the collapsed border values for cells with collapsed borde
rs. |
307 // It is held at RenderTableSection level to spare memory consumption by tab
le cells. | 307 // It is held at RenderTableSection level to spare memory consumption by tab
le cells. |
308 HashMap<pair<const RenderTableCell*, int>, CollapsedBorderValue > m_cellsCol
lapsedBorders; | 308 HashMap<pair<const RenderTableCell*, int>, CollapsedBorderValue > m_cellsCol
lapsedBorders; |
309 }; | 309 }; |
310 | 310 |
311 inline RenderTableSection* toRenderTableSection(RenderObject* object) | 311 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableSection, isTableSection()); |
312 { | |
313 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableSection()); | |
314 return static_cast<RenderTableSection*>(object); | |
315 } | |
316 | |
317 inline const RenderTableSection* toRenderTableSection(const RenderObject* object
) | |
318 { | |
319 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTableSection()); | |
320 return static_cast<const RenderTableSection*>(object); | |
321 } | |
322 | |
323 // This will catch anyone doing an unnecessary cast. | |
324 void toRenderTableSection(const RenderTableSection*); | |
325 | 312 |
326 } // namespace WebCore | 313 } // namespace WebCore |
327 | 314 |
328 #endif // RenderTableSection_h | 315 #endif // RenderTableSection_h |
OLD | NEW |