eseidel | e8ab6a1 | 2006-05-12 23:44:39 +0000 | [diff] [blame] | 1 | /* |
eseidel | e8ab6a1 | 2006-05-12 23:44:39 +0000 | [diff] [blame] | 2 | * Copyright (C) 2002 Lars Knoll (knoll@kde.org) |
| 3 | * (C) 2002 Dirk Mueller (mueller@kde.org) |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Library General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2 of the License. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Library General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Library General Public License |
| 16 | * along with this library; see the file COPYING.LIB. If not, write to |
ddkilzer | c8eccec | 2007-09-26 02:29:57 +0000 | [diff] [blame] | 17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 | * Boston, MA 02110-1301, USA. |
eseidel | e8ab6a1 | 2006-05-12 23:44:39 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
bdash | 432dc32 | 2007-01-12 04:28:05 +0000 | [diff] [blame] | 21 | #ifndef FixedTableLayout_h |
| 22 | #define FixedTableLayout_h |
eseidel | e8ab6a1 | 2006-05-12 23:44:39 +0000 | [diff] [blame] | 23 | |
eae@chromium.org | 9717cd8 | 2012-11-07 18:33:44 +0000 | [diff] [blame] | 24 | #include "LayoutUnit.h" |
eseidel | e8ab6a1 | 2006-05-12 23:44:39 +0000 | [diff] [blame] | 25 | #include "Length.h" |
darin | 91298e5 | 2006-06-12 01:10:17 +0000 | [diff] [blame] | 26 | #include "TableLayout.h" |
| 27 | #include <wtf/Vector.h> |
eseidel | e8ab6a1 | 2006-05-12 23:44:39 +0000 | [diff] [blame] | 28 | |
| 29 | namespace WebCore { |
| 30 | |
| 31 | class RenderTable; |
| 32 | |
weinig | 1497a7e | 2006-10-26 20:23:55 +0000 | [diff] [blame] | 33 | class FixedTableLayout : public TableLayout { |
eseidel | e8ab6a1 | 2006-05-12 23:44:39 +0000 | [diff] [blame] | 34 | public: |
| 35 | FixedTableLayout(RenderTable*); |
eseidel | e8ab6a1 | 2006-05-12 23:44:39 +0000 | [diff] [blame] | 36 | |
ojan@chromium.org | 021e220 | 2013-02-22 19:40:43 +0000 | [diff] [blame] | 37 | virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) OVERRIDE; |
| 38 | virtual void applyPreferredLogicalWidthQuirks(LayoutUnit& minWidth, LayoutUnit& maxWidth) const OVERRIDE; |
ddkilzer | 260f3d2 | 2007-01-05 05:56:31 +0000 | [diff] [blame] | 39 | virtual void layout(); |
eseidel | e8ab6a1 | 2006-05-12 23:44:39 +0000 | [diff] [blame] | 40 | |
mitz@apple.com | a4d43b9 | 2010-11-03 20:44:49 +0000 | [diff] [blame] | 41 | private: |
ojan@chromium.org | 2160cda | 2013-02-22 03:12:04 +0000 | [diff] [blame] | 42 | int calcWidthArray(); |
eseidel | e8ab6a1 | 2006-05-12 23:44:39 +0000 | [diff] [blame] | 43 | |
darin | 91298e5 | 2006-06-12 01:10:17 +0000 | [diff] [blame] | 44 | Vector<Length> m_width; |
eseidel | e8ab6a1 | 2006-05-12 23:44:39 +0000 | [diff] [blame] | 45 | }; |
| 46 | |
weinig | 1497a7e | 2006-10-26 20:23:55 +0000 | [diff] [blame] | 47 | } // namespace WebCore |
eseidel | e8ab6a1 | 2006-05-12 23:44:39 +0000 | [diff] [blame] | 48 | |
bdash | 432dc32 | 2007-01-12 04:28:05 +0000 | [diff] [blame] | 49 | #endif // FixedTableLayout_h |