Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: Source/core/layout/TableLayoutAlgorithmAuto.h

Issue 1231363003: Fix virtual/override/final usage in Source/core/layout/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 }; 44 };
45 45
46 enum DistributionDirection { 46 enum DistributionDirection {
47 StartToEnd, 47 StartToEnd,
48 EndToStart 48 EndToStart
49 }; 49 };
50 50
51 class TableLayoutAlgorithmAuto final : public TableLayoutAlgorithm { 51 class TableLayoutAlgorithmAuto final : public TableLayoutAlgorithm {
52 public: 52 public:
53 TableLayoutAlgorithmAuto(LayoutTable*); 53 TableLayoutAlgorithmAuto(LayoutTable*);
54 virtual ~TableLayoutAlgorithmAuto(); 54 ~TableLayoutAlgorithmAuto() override;
55 55
56 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) override; 56 void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidt h) override;
57 virtual void applyPreferredLogicalWidthQuirks(LayoutUnit& minWidth, LayoutUn it& maxWidth) const override; 57 void applyPreferredLogicalWidthQuirks(LayoutUnit& minWidth, LayoutUnit& maxW idth) const override;
58 virtual void layout() override; 58 void layout() override;
59 virtual void willChangeTableLayout() override { } 59 void willChangeTableLayout() override { }
60 60
61 private: 61 private:
62 void fullRecalc(); 62 void fullRecalc();
63 void recalcColumn(unsigned effCol); 63 void recalcColumn(unsigned effCol);
64 64
65 int calcEffectiveLogicalWidth(); 65 int calcEffectiveLogicalWidth();
66 void shrinkColumnWidth(const LengthType&, int& available); 66 void shrinkColumnWidth(const LengthType&, int& available);
67 template<typename Total, LengthType, CellsToProcess, DistributionMode, Distr ibutionDirection> void distributeWidthToColumns(int& available, Total); 67 template<typename Total, LengthType, CellsToProcess, DistributionMode, Distr ibutionDirection> void distributeWidthToColumns(int& available, Total);
68 68
69 void insertSpanCell(LayoutTableCell*); 69 void insertSpanCell(LayoutTableCell*);
(...skipping 24 matching lines...) Expand all
94 94
95 Vector<Layout, 4> m_layoutStruct; 95 Vector<Layout, 4> m_layoutStruct;
96 Vector<LayoutTableCell*, 4> m_spanCells; 96 Vector<LayoutTableCell*, 4> m_spanCells;
97 bool m_hasPercent : 1; 97 bool m_hasPercent : 1;
98 mutable bool m_effectiveLogicalWidthDirty : 1; 98 mutable bool m_effectiveLogicalWidthDirty : 1;
99 }; 99 };
100 100
101 } // namespace blink 101 } // namespace blink
102 102
103 #endif // TableLayoutAlgorithmAuto 103 #endif // TableLayoutAlgorithmAuto
OLDNEW
« no previous file with comments | « Source/core/layout/MultiColumnFragmentainerGroupTest.cpp ('k') | Source/core/layout/TableLayoutAlgorithmFixed.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698