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

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

Issue 1237623010: Intersect with the dirty rect before deciding which columns to examine for collection. (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
« no previous file with comments | « no previous file | Source/core/layout/MultiColumnFragmentainerGroup.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 visual recta ngle.
103 void columnIntervalForVisualRect(const LayoutRect&, unsigned& firstColumn, u nsigned& lastColumn) const;
104
102 LayoutMultiColumnSet& m_columnSet; 105 LayoutMultiColumnSet& m_columnSet;
103 106
104 LayoutUnit m_logicalTop; 107 LayoutUnit m_logicalTop;
105 LayoutUnit m_logicalTopInFlowThread; 108 LayoutUnit m_logicalTopInFlowThread;
106 LayoutUnit m_logicalBottomInFlowThread; 109 LayoutUnit m_logicalBottomInFlowThread;
107 110
108 LayoutUnit m_columnHeight; 111 LayoutUnit m_columnHeight;
109 112
110 // The following variables are used when balancing the column set. 113 // The following variables are used when balancing the column set.
111 LayoutUnit m_maxColumnHeight; // Maximum column height allowed. 114 LayoutUnit m_maxColumnHeight; // Maximum column height allowed.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 176
174 private: 177 private:
175 LayoutMultiColumnSet& m_columnSet; 178 LayoutMultiColumnSet& m_columnSet;
176 179
177 Vector<MultiColumnFragmentainerGroup, 1> m_groups; 180 Vector<MultiColumnFragmentainerGroup, 1> m_groups;
178 }; 181 };
179 182
180 } // namespace blink 183 } // namespace blink
181 184
182 #endif // MultiColumnFragmentainerGroup_h 185 #endif // MultiColumnFragmentainerGroup_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/MultiColumnFragmentainerGroup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698