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

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

Issue 1190153002: Make mapLocalToContainer() work properly for content that follows a column spanner. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // breaks assumed so far into account. 76 // breaks assumed so far into account.
77 unsigned findRunWithTallestColumns() const; 77 unsigned findRunWithTallestColumns() const;
78 78
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 LayoutSize translationAtColumn(unsigned columnIndex) const;
87 LayoutRect columnRectAt(unsigned columnIndex) const; 86 LayoutRect columnRectAt(unsigned columnIndex) const;
88 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; }
89 LayoutRect flowThreadPortionRectAt(unsigned columnIndex) const; 88 LayoutRect flowThreadPortionRectAt(unsigned columnIndex) const;
90 LayoutRect flowThreadPortionOverflowRect(const LayoutRect& flowThreadPortion , unsigned columnIndex, unsigned columnCount, LayoutUnit columnGap) const; 89 LayoutRect flowThreadPortionOverflowRect(const LayoutRect& flowThreadPortion , unsigned columnIndex, unsigned columnCount, LayoutUnit columnGap) const;
91 90
92 enum ColumnIndexCalculationMode { 91 enum ColumnIndexCalculationMode {
93 ClampToExistingColumns, // Stay within the range of already existing col umns. 92 ClampToExistingColumns, // Stay within the range of already existing col umns.
94 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.
95 }; 94 };
96 unsigned columnIndexAtOffset(LayoutUnit offsetInFlowThread, ColumnIndexCalcu lationMode = ClampToExistingColumns) const; 95 unsigned columnIndexAtOffset(LayoutUnit offsetInFlowThread, ColumnIndexCalcu lationMode = ClampToExistingColumns) const;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 173
175 private: 174 private:
176 LayoutMultiColumnSet& m_columnSet; 175 LayoutMultiColumnSet& m_columnSet;
177 176
178 Vector<MultiColumnFragmentainerGroup, 1> m_groups; 177 Vector<MultiColumnFragmentainerGroup, 1> m_groups;
179 }; 178 };
180 179
181 } // namespace blink 180 } // namespace blink
182 181
183 #endif // MultiColumnFragmentainerGroup_h 182 #endif // MultiColumnFragmentainerGroup_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutMultiColumnSet.cpp ('k') | Source/core/layout/MultiColumnFragmentainerGroup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698