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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 mutable bool m_needsSectionRecalc : 1; | 267 mutable bool m_needsSectionRecalc : 1; |
268 | 268 |
269 short m_hSpacing; | 269 short m_hSpacing; |
270 short m_vSpacing; | 270 short m_vSpacing; |
271 LayoutUnit m_borderStart; | 271 LayoutUnit m_borderStart; |
272 LayoutUnit m_borderEnd; | 272 LayoutUnit m_borderEnd; |
273 }; | 273 }; |
274 | 274 |
275 inline RenderTableSection* RenderTable::topSection() const | 275 inline RenderTableSection* RenderTable::topSection() const |
276 { | 276 { |
| 277 ASSERT(!needsSectionRecalc()); |
277 if (m_head) | 278 if (m_head) |
278 return m_head; | 279 return m_head; |
279 if (m_firstBody) | 280 if (m_firstBody) |
280 return m_firstBody; | 281 return m_firstBody; |
281 return m_foot; | 282 return m_foot; |
282 } | 283 } |
283 | 284 |
284 inline RenderTable* toRenderTable(RenderObject* object) | 285 inline RenderTable* toRenderTable(RenderObject* object) |
285 { | 286 { |
286 ASSERT(!object || object->isTable()); | 287 ASSERT(!object || object->isTable()); |
287 return static_cast<RenderTable*>(object); | 288 return static_cast<RenderTable*>(object); |
288 } | 289 } |
289 | 290 |
290 inline const RenderTable* toRenderTable(const RenderObject* object) | 291 inline const RenderTable* toRenderTable(const RenderObject* object) |
291 { | 292 { |
292 ASSERT(!object || object->isTable()); | 293 ASSERT(!object || object->isTable()); |
293 return static_cast<const RenderTable*>(object); | 294 return static_cast<const RenderTable*>(object); |
294 } | 295 } |
295 | 296 |
296 // This will catch anyone doing an unnecessary cast. | 297 // This will catch anyone doing an unnecessary cast. |
297 void toRenderTable(const RenderTable*); | 298 void toRenderTable(const RenderTable*); |
298 | 299 |
299 } // namespace WebCore | 300 } // namespace WebCore |
300 | 301 |
301 #endif // RenderTable_h | 302 #endif // RenderTable_h |
OLD | NEW |