| 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 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 | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #ifndef TableLayoutAlgorithmFixed_h | 21 #ifndef TableLayoutAlgorithmFixed_h |
| 22 #define TableLayoutAlgorithmFixed_h | 22 #define TableLayoutAlgorithmFixed_h |
| 23 | 23 |
| 24 #include "core/layout/TableLayoutAlgorithm.h" | 24 #include "core/layout/TableLayoutAlgorithm.h" |
| 25 #include "platform/Length.h" | 25 #include "platform/Length.h" |
| 26 #include "wtf/Vector.h" | 26 #include "platform/wtf/Vector.h" |
| 27 | 27 |
| 28 namespace blink { | 28 namespace blink { |
| 29 | 29 |
| 30 class LayoutTable; | 30 class LayoutTable; |
| 31 | 31 |
| 32 class TableLayoutAlgorithmFixed final : public TableLayoutAlgorithm { | 32 class TableLayoutAlgorithmFixed final : public TableLayoutAlgorithm { |
| 33 public: | 33 public: |
| 34 TableLayoutAlgorithmFixed(LayoutTable*); | 34 TableLayoutAlgorithmFixed(LayoutTable*); |
| 35 | 35 |
| 36 void ComputeIntrinsicLogicalWidths(LayoutUnit& min_width, | 36 void ComputeIntrinsicLogicalWidths(LayoutUnit& min_width, |
| 37 LayoutUnit& max_width) override; | 37 LayoutUnit& max_width) override; |
| 38 void ApplyPreferredLogicalWidthQuirks(LayoutUnit& min_width, | 38 void ApplyPreferredLogicalWidthQuirks(LayoutUnit& min_width, |
| 39 LayoutUnit& max_width) const override; | 39 LayoutUnit& max_width) const override; |
| 40 void UpdateLayout() override; | 40 void UpdateLayout() override; |
| 41 void WillChangeTableLayout() override; | 41 void WillChangeTableLayout() override; |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 int CalcWidthArray(); | 44 int CalcWidthArray(); |
| 45 | 45 |
| 46 Vector<Length> width_; | 46 Vector<Length> width_; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace blink | 49 } // namespace blink |
| 50 | 50 |
| 51 #endif // TableLayoutAlgorithmFixed_h | 51 #endif // TableLayoutAlgorithmFixed_h |
| OLD | NEW |