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

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

Issue 1265933002: Make LayoutFlowThread::fragmentsBoundingBox() faster. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Code review. 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void addContentRun(LayoutUnit endOffsetInFlowThread); 54 void addContentRun(LayoutUnit endOffsetInFlowThread);
55 void updateMinimumColumnHeight(LayoutUnit height) { m_minimumColumnHeight = std::max(height, m_minimumColumnHeight); } 55 void updateMinimumColumnHeight(LayoutUnit height) { m_minimumColumnHeight = std::max(height, m_minimumColumnHeight); }
56 void recordSpaceShortage(LayoutUnit); 56 void recordSpaceShortage(LayoutUnit);
57 bool recalculateColumnHeight(BalancedColumnHeightCalculation calculationMode ); 57 bool recalculateColumnHeight(BalancedColumnHeightCalculation calculationMode );
58 58
59 void expandToEncompassFlowThreadOverflow(); 59 void expandToEncompassFlowThreadOverflow();
60 60
61 LayoutSize flowThreadTranslationAtOffset(LayoutUnit offsetInFlowThread) cons t; 61 LayoutSize flowThreadTranslationAtOffset(LayoutUnit offsetInFlowThread) cons t;
62 LayoutUnit columnLogicalTopForOffset(LayoutUnit offsetInFlowThread) const; 62 LayoutUnit columnLogicalTopForOffset(LayoutUnit offsetInFlowThread) const;
63 LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPoint) con st; 63 LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPoint) con st;
64 LayoutRect fragmentsBoundingBox(const LayoutRect& boundingBoxInFlowThread) c onst;
65
64 void collectLayerFragments(DeprecatedPaintLayerFragments&, const LayoutRect& layerBoundingBox, const LayoutRect& dirtyRect) const; 66 void collectLayerFragments(DeprecatedPaintLayerFragments&, const LayoutRect& layerBoundingBox, const LayoutRect& dirtyRect) const;
65 LayoutRect calculateOverflow() const; 67 LayoutRect calculateOverflow() const;
66 68
67 // The "CSS actual" value of column-count. This includes overflowing columns , if any. 69 // The "CSS actual" value of column-count. This includes overflowing columns , if any.
68 unsigned actualColumnCount() const; 70 unsigned actualColumnCount() const;
69 71
70 private: 72 private:
71 LayoutUnit heightAdjustedForRowOffset(LayoutUnit height) const; 73 LayoutUnit heightAdjustedForRowOffset(LayoutUnit height) const;
72 LayoutUnit calculateMaxColumnHeight() const; 74 LayoutUnit calculateMaxColumnHeight() const;
73 void setAndConstrainColumnHeight(LayoutUnit); 75 void setAndConstrainColumnHeight(LayoutUnit);
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 182
181 private: 183 private:
182 LayoutMultiColumnSet& m_columnSet; 184 LayoutMultiColumnSet& m_columnSet;
183 185
184 Vector<MultiColumnFragmentainerGroup, 1> m_groups; 186 Vector<MultiColumnFragmentainerGroup, 1> m_groups;
185 }; 187 };
186 188
187 } // namespace blink 189 } // namespace blink
188 190
189 #endif // MultiColumnFragmentainerGroup_h 191 #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