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