| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, | 41 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, |
| 42 LayoutUnit& maxWidth) = 0; | 42 LayoutUnit& maxWidth) = 0; |
| 43 virtual LayoutUnit scaledWidthFromPercentColumns() { return LayoutUnit(); } | 43 virtual LayoutUnit scaledWidthFromPercentColumns() { return LayoutUnit(); } |
| 44 virtual void applyPreferredLogicalWidthQuirks(LayoutUnit& minWidth, | 44 virtual void applyPreferredLogicalWidthQuirks(LayoutUnit& minWidth, |
| 45 LayoutUnit& maxWidth) const = 0; | 45 LayoutUnit& maxWidth) const = 0; |
| 46 virtual void layout() = 0; | 46 virtual void layout() = 0; |
| 47 virtual void willChangeTableLayout() = 0; | 47 virtual void willChangeTableLayout() = 0; |
| 48 | 48 |
| 49 protected: | 49 protected: |
| 50 // FIXME: Once we enable SATURATED_LAYOUT_ARITHMETHIC, this should just be Lay
outUnit::nearlyMax(). | 50 // FIXME: Once we enable SATURATED_LAYOUT_ARITHMETHIC, this should just be |
| 51 // Until then though, using nearlyMax causes overflow in some tests, so we jus
t pick a large number. | 51 // LayoutUnit::nearlyMax(). Until then though, using nearlyMax causes |
| 52 // overflow in some tests, so we just pick a large number. |
| 52 const static int tableMaxWidth = 1000000; | 53 const static int tableMaxWidth = 1000000; |
| 53 | 54 |
| 54 LayoutTable* m_table; | 55 LayoutTable* m_table; |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace blink | 58 } // namespace blink |
| 58 | 59 |
| 59 #endif // TableLayoutAlgorithm_h | 60 #endif // TableLayoutAlgorithm_h |
| OLD | NEW |