| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 // won't change often. | 249 // won't change often. |
| 250 m_columnLogicalWidthChanged |= | 250 m_columnLogicalWidthChanged |= |
| 251 m_effectiveColumnPositions[index] != position; | 251 m_effectiveColumnPositions[index] != position; |
| 252 m_effectiveColumnPositions[index] = position; | 252 m_effectiveColumnPositions[index] = position; |
| 253 } | 253 } |
| 254 | 254 |
| 255 LayoutTableSection* header() const { return m_head; } | 255 LayoutTableSection* header() const { return m_head; } |
| 256 LayoutTableSection* footer() const { return m_foot; } | 256 LayoutTableSection* footer() const { return m_foot; } |
| 257 LayoutTableSection* firstBody() const { return m_firstBody; } | 257 LayoutTableSection* firstBody() const { return m_firstBody; } |
| 258 | 258 |
| 259 void setRowOffsetFromRepeatingHeader(LayoutUnit offset) { |
| 260 m_rowOffsetFromRepeatingHeader = offset; |
| 261 } |
| 262 LayoutUnit rowOffsetFromRepeatingHeader() const { |
| 263 return m_rowOffsetFromRepeatingHeader; |
| 264 } |
| 265 |
| 259 // This function returns 0 if the table has no section. | 266 // This function returns 0 if the table has no section. |
| 260 LayoutTableSection* topSection() const; | 267 LayoutTableSection* topSection() const; |
| 261 LayoutTableSection* bottomSection() const; | 268 LayoutTableSection* bottomSection() const; |
| 262 | 269 |
| 263 // This function returns 0 if the table has no non-empty sections. | 270 // This function returns 0 if the table has no non-empty sections. |
| 264 LayoutTableSection* topNonEmptySection() const; | 271 LayoutTableSection* topNonEmptySection() const; |
| 265 | 272 |
| 266 unsigned lastEffectiveColumnIndex() const { | 273 unsigned lastEffectiveColumnIndex() const { |
| 267 return numEffectiveColumns() - 1; | 274 return numEffectiveColumns() - 1; |
| 268 } | 275 } |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 } | 575 } |
| 569 return numEffectiveColumns(); | 576 return numEffectiveColumns(); |
| 570 } | 577 } |
| 571 | 578 |
| 572 short m_hSpacing; | 579 short m_hSpacing; |
| 573 short m_vSpacing; | 580 short m_vSpacing; |
| 574 int m_borderStart; | 581 int m_borderStart; |
| 575 int m_borderEnd; | 582 int m_borderEnd; |
| 576 | 583 |
| 577 LayoutUnit m_blockOffsetToFirstRepeatableHeader; | 584 LayoutUnit m_blockOffsetToFirstRepeatableHeader; |
| 585 LayoutUnit m_rowOffsetFromRepeatingHeader; |
| 578 }; | 586 }; |
| 579 | 587 |
| 580 inline LayoutTableSection* LayoutTable::topSection() const { | 588 inline LayoutTableSection* LayoutTable::topSection() const { |
| 581 ASSERT(!needsSectionRecalc()); | 589 ASSERT(!needsSectionRecalc()); |
| 582 if (m_head) | 590 if (m_head) |
| 583 return m_head; | 591 return m_head; |
| 584 if (m_firstBody) | 592 if (m_firstBody) |
| 585 return m_firstBody; | 593 return m_firstBody; |
| 586 return m_foot; | 594 return m_foot; |
| 587 } | 595 } |
| 588 | 596 |
| 589 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); | 597 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); |
| 590 | 598 |
| 591 } // namespace blink | 599 } // namespace blink |
| 592 | 600 |
| 593 #endif // LayoutTable_h | 601 #endif // LayoutTable_h |
| OLD | NEW |