Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2002 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2002 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2002 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002 Dirk Mueller (mueller@kde.org) |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License. | 8 * version 2 of the License. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 36 : m_table(table) | 36 : m_table(table) |
| 37 { | 37 { |
| 38 } | 38 } |
| 39 | 39 |
| 40 virtual ~TableLayoutAlgorithm() { } | 40 virtual ~TableLayoutAlgorithm() { } |
| 41 | 41 |
| 42 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) = 0; | 42 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) = 0; |
| 43 virtual void applyPreferredLogicalWidthQuirks(LayoutUnit& minWidth, LayoutUn it& maxWidth) const = 0; | 43 virtual void applyPreferredLogicalWidthQuirks(LayoutUnit& minWidth, LayoutUn it& maxWidth) const = 0; |
| 44 virtual void layout() = 0; | 44 virtual void layout() = 0; |
| 45 virtual void willChangeTableLayout() = 0; | 45 virtual void willChangeTableLayout() = 0; |
| 46 virtual LayoutUnit scaledWidthFromPercentColumns() = 0; | |
|
mstensho (USE GERRIT)
2016/04/27 12:19:48
I don't think it's strictly necessary to make this
dgrogan
2016/04/27 20:24:05
Good call.
| |
| 46 | 47 |
| 47 protected: | 48 protected: |
| 48 // FIXME: Once we enable SATURATED_LAYOUT_ARITHMETHIC, this should just be L ayoutUnit::nearlyMax(). | 49 // FIXME: Once we enable SATURATED_LAYOUT_ARITHMETHIC, this should just be L ayoutUnit::nearlyMax(). |
| 49 // Until then though, using nearlyMax causes overflow in some tests, so we j ust pick a large number. | 50 // Until then though, using nearlyMax causes overflow in some tests, so we j ust pick a large number. |
| 50 const static int tableMaxWidth = 1000000; | 51 const static int tableMaxWidth = 1000000; |
| 51 | 52 |
| 52 LayoutTable* m_table; | 53 LayoutTable* m_table; |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace blink | 56 } // namespace blink |
| 56 | 57 |
| 57 #endif // TableLayoutAlgorithm_h | 58 #endif // TableLayoutAlgorithm_h |
| OLD | NEW |