OLD | NEW |
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. |
100 unsigned columnIndexAtVisualPoint(const LayoutPoint& visualPoint) const; | 100 unsigned columnIndexAtVisualPoint(const LayoutPoint& visualPoint) const; |
101 | 101 |
| 102 // Get the first and the last column intersecting the specified block range. |
| 103 // Note that |logicalBottomInFlowThread| is an exclusive endpoint. |
| 104 void columnIntervalForBlockRangeInFlowThread(LayoutUnit logicalTopInFlowThre
ad, LayoutUnit logicalBottomInFlowThread, unsigned& firstColumn, unsigned& lastC
olumn) const; |
| 105 |
102 // Get the first and the last column intersecting the specified visual recta
ngle. | 106 // Get the first and the last column intersecting the specified visual recta
ngle. |
103 void columnIntervalForVisualRect(const LayoutRect&, unsigned& firstColumn, u
nsigned& lastColumn) const; | 107 void columnIntervalForVisualRect(const LayoutRect&, unsigned& firstColumn, u
nsigned& lastColumn) const; |
104 | 108 |
105 LayoutMultiColumnSet& m_columnSet; | 109 LayoutMultiColumnSet& m_columnSet; |
106 | 110 |
107 LayoutUnit m_logicalTop; | 111 LayoutUnit m_logicalTop; |
108 LayoutUnit m_logicalTopInFlowThread; | 112 LayoutUnit m_logicalTopInFlowThread; |
109 LayoutUnit m_logicalBottomInFlowThread; | 113 LayoutUnit m_logicalBottomInFlowThread; |
110 | 114 |
111 LayoutUnit m_columnHeight; | 115 LayoutUnit m_columnHeight; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 180 |
177 private: | 181 private: |
178 LayoutMultiColumnSet& m_columnSet; | 182 LayoutMultiColumnSet& m_columnSet; |
179 | 183 |
180 Vector<MultiColumnFragmentainerGroup, 1> m_groups; | 184 Vector<MultiColumnFragmentainerGroup, 1> m_groups; |
181 }; | 185 }; |
182 | 186 |
183 } // namespace blink | 187 } // namespace blink |
184 | 188 |
185 #endif // MultiColumnFragmentainerGroup_h | 189 #endif // MultiColumnFragmentainerGroup_h |
OLD | NEW |