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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.h

Issue 1406973008: Calculate minimum column height after layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review Created 5 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 unsigned usedColumnCount() const { return multiColumnFlowThread()->columnCou nt(); } 104 unsigned usedColumnCount() const { return multiColumnFlowThread()->columnCou nt(); }
105 105
106 bool heightIsAuto() const; 106 bool heightIsAuto() const;
107 107
108 // Find the column that contains the given block offset, and return the tran slation needed to 108 // Find the column that contains the given block offset, and return the tran slation needed to
109 // get from flow thread coordinates to visual coordinates. 109 // get from flow thread coordinates to visual coordinates.
110 LayoutSize flowThreadTranslationAtOffset(LayoutUnit) const; 110 LayoutSize flowThreadTranslationAtOffset(LayoutUnit) const;
111 111
112 LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPoint) con st; 112 LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPoint) con st;
113 113
114 void updateMinimumColumnHeight(LayoutUnit offsetInFlowThread, LayoutUnit hei ght);
115
116 // (Re-)calculate the column height if it's auto. This is first and foremost needed by sets that 114 // (Re-)calculate the column height if it's auto. This is first and foremost needed by sets that
117 // are to balance the column height, but even when it isn't to be balanced, this is necessary if 115 // are to balance the column height, but even when it isn't to be balanced, this is necessary if
118 // the multicol container's height is constrained. 116 // the multicol container's height is constrained.
119 bool recalculateColumnHeight(BalancedColumnHeightCalculation); 117 bool recalculateColumnHeight(BalancedColumnHeightCalculation);
120 118
121 // Reset previously calculated column height. Will mark for layout if needed . 119 // Reset previously calculated column height. Will mark for layout if needed .
122 void resetColumnHeight(); 120 void resetColumnHeight();
123 121
124 // Layout of flow thread content that's to be rendered inside this column se t begins. This 122 // Layout of flow thread content that's to be rendered inside this column se t begins. This
125 // happens at the beginning of flow thread layout, and when advancing from a previous column set 123 // happens at the beginning of flow thread layout, and when advancing from a previous column set
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 MultiColumnFragmentainerGroupList m_fragmentainerGroups; 169 MultiColumnFragmentainerGroupList m_fragmentainerGroups;
172 LayoutFlowThread* m_flowThread; 170 LayoutFlowThread* m_flowThread;
173 }; 171 };
174 172
175 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); 173 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet());
176 174
177 } // namespace blink 175 } // namespace blink
178 176
179 #endif // LayoutMultiColumnSet_h 177 #endif // LayoutMultiColumnSet_h
180 178
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698