Chromium Code Reviews| Index: Source/core/layout/TableLayoutAlgorithmAuto.h |
| diff --git a/Source/core/layout/TableLayoutAlgorithmAuto.h b/Source/core/layout/TableLayoutAlgorithmAuto.h |
| index 079d80c34dc6294a93c8a319981dfaaa76e46de4..22521c92b91b1983ffa79663b12eb771df5e2f56 100644 |
| --- a/Source/core/layout/TableLayoutAlgorithmAuto.h |
| +++ b/Source/core/layout/TableLayoutAlgorithmAuto.h |
| @@ -31,6 +31,22 @@ namespace blink { |
| class LayoutTable; |
| class LayoutTableCell; |
| +enum CellsToProcess { |
| + AllCells, |
| + NonEmptyCells |
| +}; |
| + |
| +enum DistributionMode { |
| + ExtraWidth, |
| + InitialWidth, |
| + LeftoverWidth |
| +}; |
| + |
| +enum DistributionDirection { |
| + StartToEnd, |
| + EndToStart |
| +}; |
| + |
| class TableLayoutAlgorithmAuto final : public TableLayoutAlgorithm { |
| public: |
| TableLayoutAlgorithmAuto(LayoutTable*); |
| @@ -46,7 +62,8 @@ private: |
| void recalcColumn(unsigned effCol); |
| int calcEffectiveLogicalWidth(); |
| - void shrinkCellWidth(const LengthType&, int& available); |
| + void shrinkColumnWidth(const LengthType&, int& available); |
| + template<typename Total> void distributeWidthToColumns(const LengthType&, int& available, Total, CellsToProcess, DistributionMode, DistributionDirection); |
|
mstensho (USE GERRIT)
2015/05/12 08:50:27
I was suggesting that you moved LengthType, CellsT
|
| void insertSpanCell(LayoutTableCell*); |