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. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 LayoutTableCol* innermostColOrColGroup() { return col ? col : colgroup; } | 366 LayoutTableCol* innermostColOrColGroup() { return col ? col : colgroup; } |
367 }; | 367 }; |
368 ColAndColGroup colElementAtAbsoluteColumn( | 368 ColAndColGroup colElementAtAbsoluteColumn( |
369 unsigned absoluteColumnIndex) const { | 369 unsigned absoluteColumnIndex) const { |
370 // The common case is to not have col/colgroup elements, make that case | 370 // The common case is to not have col/colgroup elements, make that case |
371 // fast. | 371 // fast. |
372 if (!m_hasColElements) | 372 if (!m_hasColElements) |
373 return ColAndColGroup(); | 373 return ColAndColGroup(); |
374 return slowColElementAtAbsoluteColumn(absoluteColumnIndex); | 374 return slowColElementAtAbsoluteColumn(absoluteColumnIndex); |
375 } | 375 } |
| 376 bool hasColElements() const { return m_hasColElements; } |
376 | 377 |
377 bool needsSectionRecalc() const { return m_needsSectionRecalc; } | 378 bool needsSectionRecalc() const { return m_needsSectionRecalc; } |
378 void setNeedsSectionRecalc() { | 379 void setNeedsSectionRecalc() { |
379 if (documentBeingDestroyed()) | 380 if (documentBeingDestroyed()) |
380 return; | 381 return; |
381 // For all we know, sections may have been deleted at this point. Don't | 382 // For all we know, sections may have been deleted at this point. Don't |
382 // keep pointers dangling around. | 383 // keep pointers dangling around. |
383 m_head = nullptr; | 384 m_head = nullptr; |
384 m_foot = nullptr; | 385 m_foot = nullptr; |
385 m_firstBody = nullptr; | 386 m_firstBody = nullptr; |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 if (m_firstBody) | 613 if (m_firstBody) |
613 return m_firstBody; | 614 return m_firstBody; |
614 return m_foot; | 615 return m_foot; |
615 } | 616 } |
616 | 617 |
617 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); | 618 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); |
618 | 619 |
619 } // namespace blink | 620 } // namespace blink |
620 | 621 |
621 #endif // LayoutTable_h | 622 #endif // LayoutTable_h |
OLD | NEW |