OLD | NEW |
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 } | 135 } |
136 // Return the last column set or spanner placeholder. | 136 // Return the last column set or spanner placeholder. |
137 LayoutBox* lastMultiColumnBox() const | 137 LayoutBox* lastMultiColumnBox() const |
138 { | 138 { |
139 LayoutBox* lastSiblingBox = multiColumnBlockFlow()->lastChildBox(); | 139 LayoutBox* lastSiblingBox = multiColumnBlockFlow()->lastChildBox(); |
140 // The flow thread is the first child of the multicol container. If the
flow thread is also | 140 // The flow thread is the first child of the multicol container. If the
flow thread is also |
141 // the last child, it means that there are no siblings; i.e. we have no
column boxes. | 141 // the last child, it means that there are no siblings; i.e. we have no
column boxes. |
142 return lastSiblingBox != this ? lastSiblingBox : 0; | 142 return lastSiblingBox != this ? lastSiblingBox : 0; |
143 } | 143 } |
144 | 144 |
145 // Find the first set inside which the specified layoutObject would be rende
red. | 145 // Find the first set inside which the specified layoutObject (which is a fl
owthread descendant) would be rendered. |
146 LayoutMultiColumnSet* findSetLayoutObjects(LayoutObject*) const; | 146 LayoutMultiColumnSet* mapDescendantToColumnSet(LayoutObject*) const; |
147 | 147 |
148 // Return the spanner placeholder that belongs to the spanner in the contain
ing block chain, if | 148 // Return the spanner placeholder that belongs to the spanner in the contain
ing block chain, if |
149 // any. This includes the layoutObject for the element that actually establi
shes the spanner too. | 149 // any. This includes the layoutObject for the element that actually establi
shes the spanner too. |
150 LayoutMultiColumnSpannerPlaceholder* containingColumnSpannerPlaceholder(cons
t LayoutObject* descendant) const; | 150 LayoutMultiColumnSpannerPlaceholder* containingColumnSpannerPlaceholder(cons
t LayoutObject* descendant) const; |
151 | 151 |
152 // Populate the flow thread with what's currently its siblings. Called when
a regular block | 152 // Populate the flow thread with what's currently its siblings. Called when
a regular block |
153 // becomes a multicol container. | 153 // becomes a multicol container. |
154 void populate(); | 154 void populate(); |
155 | 155 |
156 // Empty the flow thread by moving everything to the parent. Remove all mult
icol specific | 156 // Empty the flow thread by moving everything to the parent. Remove all mult
icol specific |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 LayoutUnit m_columnHeightAvailable; // Total height available to columns, or
0 if auto. | 214 LayoutUnit m_columnHeightAvailable; // Total height available to columns, or
0 if auto. |
215 bool m_inBalancingPass; // Set when relayouting for column balancing. | 215 bool m_inBalancingPass; // Set when relayouting for column balancing. |
216 bool m_needsColumnHeightsRecalculation; // Set when we need to recalculate t
he column set heights after layout. | 216 bool m_needsColumnHeightsRecalculation; // Set when we need to recalculate t
he column set heights after layout. |
217 bool m_progressionIsInline; // Always true for regular multicol. False for p
aged-y overflow. | 217 bool m_progressionIsInline; // Always true for regular multicol. False for p
aged-y overflow. |
218 bool m_isBeingEvacuated; | 218 bool m_isBeingEvacuated; |
219 }; | 219 }; |
220 | 220 |
221 } // namespace blink | 221 } // namespace blink |
222 | 222 |
223 #endif // LayoutMultiColumnFlowThread_h | 223 #endif // LayoutMultiColumnFlowThread_h |
OLD | NEW |