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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 // The returned span of rows or columns is end-exclusive, and empty if | 412 // The returned span of rows or columns is end-exclusive, and empty if |
413 // start==end. | 413 // start==end. |
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; |
| 423 |
422 // The representation of the rows and their cells (CellStruct). | 424 // The representation of the rows and their cells (CellStruct). |
423 Vector<RowStruct> m_grid; | 425 Vector<RowStruct> m_grid; |
424 | 426 |
425 // The logical offset of each row from the top of the section. | 427 // The logical offset of each row from the top of the section. |
426 // | 428 // |
427 // Note that this Vector has one more entry than the number of rows so that | 429 // Note that this Vector has one more entry than the number of rows so that |
428 // we can keep track of the final size of the section. That is, | 430 // we can keep track of the final size of the section. That is, |
429 // m_rowPos[m_grid.size()] is a valid entry. | 431 // m_rowPos[m_grid.size()] is a valid entry. |
430 // | 432 // |
431 // To know a row's height at |rowIndex|, use the formula: | 433 // To know a row's height at |rowIndex|, use the formula: |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 bool m_hasMultipleCellLevels; | 469 bool m_hasMultipleCellLevels; |
468 | 470 |
469 LayoutUnit m_offsetForRepeatingHeader; | 471 LayoutUnit m_offsetForRepeatingHeader; |
470 }; | 472 }; |
471 | 473 |
472 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); | 474 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); |
473 | 475 |
474 } // namespace blink | 476 } // namespace blink |
475 | 477 |
476 #endif // LayoutTableSection_h | 478 #endif // LayoutTableSection_h |
OLD | NEW |