Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTableSection.h

Issue 2423403002: Set logical top and height of table rows and cells in the first layout pass. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableRow.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698