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

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

Issue 1252863005: Simplify MultiColumnFragmentainerGroup::collectLayerFragments(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MultiColumnFragmentainerGroup_h 5 #ifndef MultiColumnFragmentainerGroup_h
6 #define MultiColumnFragmentainerGroup_h 6 #define MultiColumnFragmentainerGroup_h
7 7
8 #include "core/layout/LayoutMultiColumnFlowThread.h" 8 #include "core/layout/LayoutMultiColumnFlowThread.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Given the current list of content runs, make assumptions about where we n eed to insert 79 // Given the current list of content runs, make assumptions about where we n eed to insert
80 // implicit breaks (if there's room for any at all; depending on the number of explicit breaks), 80 // implicit breaks (if there's room for any at all; depending on the number of explicit breaks),
81 // and store the results. This is needed in order to balance the columns. 81 // and store the results. This is needed in order to balance the columns.
82 void distributeImplicitBreaks(); 82 void distributeImplicitBreaks();
83 83
84 LayoutUnit calculateColumnHeight(BalancedColumnHeightCalculation) const; 84 LayoutUnit calculateColumnHeight(BalancedColumnHeightCalculation) const;
85 85
86 LayoutRect columnRectAt(unsigned columnIndex) const; 86 LayoutRect columnRectAt(unsigned columnIndex) const;
87 LayoutUnit logicalTopInFlowThreadAt(unsigned columnIndex) const { return m_l ogicalTopInFlowThread + columnIndex * m_columnHeight; } 87 LayoutUnit logicalTopInFlowThreadAt(unsigned columnIndex) const { return m_l ogicalTopInFlowThread + columnIndex * m_columnHeight; }
88 LayoutRect flowThreadPortionRectAt(unsigned columnIndex) const; 88 LayoutRect flowThreadPortionRectAt(unsigned columnIndex) const;
89 LayoutRect flowThreadPortionOverflowRect(const LayoutRect& flowThreadPortion , unsigned columnIndex, unsigned columnCount, LayoutUnit columnGap) const; 89 LayoutRect flowThreadPortionOverflowRectAt(unsigned columnIndex) const;
90 90
91 enum ColumnIndexCalculationMode { 91 enum ColumnIndexCalculationMode {
92 ClampToExistingColumns, // Stay within the range of already existing col umns. 92 ClampToExistingColumns, // Stay within the range of already existing col umns.
93 AssumeNewColumns // Allow column indices outside the range of already ex isting columns. 93 AssumeNewColumns // Allow column indices outside the range of already ex isting columns.
94 }; 94 };
95 unsigned columnIndexAtOffset(LayoutUnit offsetInFlowThread, ColumnIndexCalcu lationMode = ClampToExistingColumns) const; 95 unsigned columnIndexAtOffset(LayoutUnit offsetInFlowThread, ColumnIndexCalcu lationMode = ClampToExistingColumns) const;
96 96
97 // Return the column that the specified visual point belongs to. Only the co ordinate on the 97 // Return the column that the specified visual point belongs to. Only the co ordinate on the
98 // column progression axis is relevant. Every point belongs to a column, eve n if said point is 98 // column progression axis is relevant. Every point belongs to a column, eve n if said point is
99 // not inside any of the columns. 99 // not inside any of the columns.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 private: 177 private:
178 LayoutMultiColumnSet& m_columnSet; 178 LayoutMultiColumnSet& m_columnSet;
179 179
180 Vector<MultiColumnFragmentainerGroup, 1> m_groups; 180 Vector<MultiColumnFragmentainerGroup, 1> m_groups;
181 }; 181 };
182 182
183 } // namespace blink 183 } // namespace blink
184 184
185 #endif // MultiColumnFragmentainerGroup_h 185 #endif // MultiColumnFragmentainerGroup_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698