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, 2013 Apple Inc. All rights | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. All rights |
8 * reserved. | 8 * 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 CellSpan spannedRows(const LayoutRect& flippedRect) const; | 414 CellSpan spannedRows(const LayoutRect& flippedRect) const; |
415 CellSpan spannedEffectiveColumns(const LayoutRect& flippedRect) const; | 415 CellSpan spannedEffectiveColumns(const LayoutRect& flippedRect) const; |
416 | 416 |
417 void setLogicalPositionForCell(LayoutTableCell*, | 417 void setLogicalPositionForCell(LayoutTableCell*, |
418 unsigned effectiveColumn) const; | 418 unsigned effectiveColumn) const; |
419 | 419 |
420 void relayoutCellIfFlexed(LayoutTableCell&, int rowIndex, int rowHeight); | 420 void relayoutCellIfFlexed(LayoutTableCell&, int rowIndex, int rowHeight); |
421 | 421 |
422 int logicalHeightForRow(const LayoutTableRow&) const; | 422 int logicalHeightForRow(const LayoutTableRow&) const; |
423 | 423 |
| 424 // Honor breaking restrictions inside the table row, and adjust position and |
| 425 // size accordingly. |
| 426 void adjustRowForPagination(LayoutTableRow&, SubtreeLayoutScope&); |
| 427 |
424 // The representation of the rows and their cells (CellStruct). | 428 // The representation of the rows and their cells (CellStruct). |
425 Vector<RowStruct> m_grid; | 429 Vector<RowStruct> m_grid; |
426 | 430 |
427 // The logical offset of each row from the top of the section. | 431 // The logical offset of each row from the top of the section. |
428 // | 432 // |
429 // Note that this Vector has one more entry than the number of rows so that | 433 // Note that this Vector has one more entry than the number of rows so that |
430 // we can keep track of the final size of the section. That is, | 434 // we can keep track of the final size of the section. That is, |
431 // m_rowPos[m_grid.size()] is a valid entry. | 435 // m_rowPos[m_grid.size()] is a valid entry. |
432 // | 436 // |
433 // To know a row's height at |rowIndex|, use the formula: | 437 // To know a row's height at |rowIndex|, use the formula: |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 bool m_hasMultipleCellLevels; | 473 bool m_hasMultipleCellLevels; |
470 | 474 |
471 LayoutUnit m_offsetForRepeatingHeader; | 475 LayoutUnit m_offsetForRepeatingHeader; |
472 }; | 476 }; |
473 | 477 |
474 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); | 478 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); |
475 | 479 |
476 } // namespace blink | 480 } // namespace blink |
477 | 481 |
478 #endif // LayoutTableSection_h | 482 #endif // LayoutTableSection_h |
OLD | NEW |