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

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

Issue 2392353002: Move table cell height flexing into a separate method. (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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTableSection.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 reserv ed. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. All rights reserv ed.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 } 402 }
403 403
404 // These two functions take a rectangle as input that has been flipped by logi calRectForWritingModeAndDirection. 404 // These two functions take a rectangle as input that has been flipped by logi calRectForWritingModeAndDirection.
405 // The returned span of rows or columns is end-exclusive, and empty if start== end. 405 // The returned span of rows or columns is end-exclusive, and empty if start== end.
406 CellSpan spannedRows(const LayoutRect& flippedRect) const; 406 CellSpan spannedRows(const LayoutRect& flippedRect) const;
407 CellSpan spannedEffectiveColumns(const LayoutRect& flippedRect) const; 407 CellSpan spannedEffectiveColumns(const LayoutRect& flippedRect) const;
408 408
409 void setLogicalPositionForCell(LayoutTableCell*, 409 void setLogicalPositionForCell(LayoutTableCell*,
410 unsigned effectiveColumn) const; 410 unsigned effectiveColumn) const;
411 411
412 void relayoutCellIfFlexed(LayoutTableCell&, int rowIndex, int rowHeight);
413
412 // The representation of the rows and their cells (CellStruct). 414 // The representation of the rows and their cells (CellStruct).
413 Vector<RowStruct> m_grid; 415 Vector<RowStruct> m_grid;
414 416
415 // The logical offset of each row from the top of the section. 417 // The logical offset of each row from the top of the section.
416 // 418 //
417 // Note that this Vector has one more entry than the number of rows so that 419 // Note that this Vector has one more entry than the number of rows so that
418 // we can keep track of the final size of the section. That is, 420 // we can keep track of the final size of the section. That is,
419 // m_rowPos[m_grid.size()] is a valid entry. 421 // m_rowPos[m_grid.size()] is a valid entry.
420 // 422 //
421 // To know a row's height at |rowIndex|, use the formula: 423 // To know a row's height at |rowIndex|, use the formula:
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 bool m_hasMultipleCellLevels; 458 bool m_hasMultipleCellLevels;
457 459
458 LayoutUnit m_offsetForRepeatingHeader; 460 LayoutUnit m_offsetForRepeatingHeader;
459 }; 461 };
460 462
461 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); 463 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection());
462 464
463 } // namespace blink 465 } // namespace blink
464 466
465 #endif // LayoutTableSection_h 467 #endif // LayoutTableSection_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698