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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 unsigned columnCount() const { return m_columnCount; } | 161 unsigned columnCount() const { return m_columnCount; } |
162 LayoutUnit columnHeightAvailable() const { return m_columnHeightAvailable; } | 162 LayoutUnit columnHeightAvailable() const { return m_columnHeightAvailable; } |
163 void setColumnHeightAvailable(LayoutUnit available) { m_columnHeightAvailabl
e = available; } | 163 void setColumnHeightAvailable(LayoutUnit available) { m_columnHeightAvailabl
e = available; } |
164 bool progressionIsInline() const { return m_progressionIsInline; } | 164 bool progressionIsInline() const { return m_progressionIsInline; } |
165 | 165 |
166 virtual LayoutSize columnOffset(const LayoutPoint&) const override final; | 166 virtual LayoutSize columnOffset(const LayoutPoint&) const override final; |
167 | 167 |
168 // Do we need to set a new width and lay out? | 168 // Do we need to set a new width and lay out? |
169 virtual bool needsNewWidth() const; | 169 virtual bool needsNewWidth() const; |
170 | 170 |
171 virtual LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPo
int) const override; | 171 LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPoint) con
st; |
172 | 172 |
173 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const overr
ide final; | 173 virtual LayoutMultiColumnSet* columnSetAtBlockOffset(LayoutUnit) const overr
ide final; |
174 | 174 |
175 void layoutColumns(bool relayoutChildren, SubtreeLayoutScope&); | 175 void layoutColumns(bool relayoutChildren, SubtreeLayoutScope&); |
176 | 176 |
177 bool recalculateColumnHeights(); | 177 bool recalculateColumnHeights(); |
178 | 178 |
179 void columnRuleStyleDidChange(); | 179 void columnRuleStyleDidChange(); |
180 | 180 |
181 // Remove the spanner placeholder and return true if the specified object is
no longer a valid spanner. | 181 // Remove the spanner placeholder and return true if the specified object is
no longer a valid spanner. |
(...skipping 17 matching lines...) Expand all Loading... |
199 virtual void addColumnSetToThread(LayoutMultiColumnSet*) override; | 199 virtual void addColumnSetToThread(LayoutMultiColumnSet*) override; |
200 virtual void willBeRemovedFromTree() override; | 200 virtual void willBeRemovedFromTree() override; |
201 virtual void skipColumnSpanner(LayoutBox*, LayoutUnit logicalTopInFlowThread
) override; | 201 virtual void skipColumnSpanner(LayoutBox*, LayoutUnit logicalTopInFlowThread
) override; |
202 virtual void flowThreadDescendantWasInserted(LayoutObject*) final; | 202 virtual void flowThreadDescendantWasInserted(LayoutObject*) final; |
203 virtual void flowThreadDescendantWillBeRemoved(LayoutObject*) final; | 203 virtual void flowThreadDescendantWillBeRemoved(LayoutObject*) final; |
204 virtual void flowThreadDescendantStyleWillChange(LayoutObject*, StyleDiffere
nce, const ComputedStyle& newStyle) override; | 204 virtual void flowThreadDescendantStyleWillChange(LayoutObject*, StyleDiffere
nce, const ComputedStyle& newStyle) override; |
205 virtual void flowThreadDescendantStyleDidChange(LayoutObject*, StyleDifferen
ce, const ComputedStyle& oldStyle) override; | 205 virtual void flowThreadDescendantStyleDidChange(LayoutObject*, StyleDifferen
ce, const ComputedStyle& oldStyle) override; |
206 virtual void computePreferredLogicalWidths() override; | 206 virtual void computePreferredLogicalWidths() override; |
207 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const override; | 207 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const override; |
208 virtual void updateLogicalWidth() override; | 208 virtual void updateLogicalWidth() override; |
| 209 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst override; |
209 virtual void setPageBreak(LayoutUnit offset, LayoutUnit spaceShortage) overr
ide; | 210 virtual void setPageBreak(LayoutUnit offset, LayoutUnit spaceShortage) overr
ide; |
210 virtual void updateMinimumPageHeight(LayoutUnit offset, LayoutUnit minHeight
) override; | 211 virtual void updateMinimumPageHeight(LayoutUnit offset, LayoutUnit minHeight
) override; |
211 virtual bool addForcedColumnBreak(LayoutUnit, LayoutObject* breakChild, bool
isBefore, LayoutUnit* offsetBreakAdjustment = nullptr) override; | 212 virtual bool addForcedColumnBreak(LayoutUnit, LayoutObject* breakChild, bool
isBefore, LayoutUnit* offsetBreakAdjustment = nullptr) override; |
212 virtual bool isPageLogicalHeightKnown() const override; | 213 virtual bool isPageLogicalHeightKnown() const override; |
213 | 214 |
214 // The last set we worked on. It's not to be used as the "current set". The
concept of a | 215 // The last set we worked on. It's not to be used as the "current set". The
concept of a |
215 // "current set" is difficult, since layout may jump back and forth in the t
ree, due to wrong | 216 // "current set" is difficult, since layout may jump back and forth in the t
ree, due to wrong |
216 // top location estimates (due to e.g. margin collapsing), and possibly for
other reasons. | 217 // top location estimates (due to e.g. margin collapsing), and possibly for
other reasons. |
217 LayoutMultiColumnSet* m_lastSetWorkedOn; | 218 LayoutMultiColumnSet* m_lastSetWorkedOn; |
218 | 219 |
219 unsigned m_columnCount; // The used value of column-count | 220 unsigned m_columnCount; // The used value of column-count |
220 LayoutUnit m_columnHeightAvailable; // Total height available to columns, or
0 if auto. | 221 LayoutUnit m_columnHeightAvailable; // Total height available to columns, or
0 if auto. |
221 bool m_inBalancingPass; // Set when relayouting for column balancing. | 222 bool m_inBalancingPass; // Set when relayouting for column balancing. |
222 bool m_needsColumnHeightsRecalculation; // Set when we need to recalculate t
he column set heights after layout. | 223 bool m_needsColumnHeightsRecalculation; // Set when we need to recalculate t
he column set heights after layout. |
223 bool m_progressionIsInline; // Always true for regular multicol. False for p
aged-y overflow. | 224 bool m_progressionIsInline; // Always true for regular multicol. False for p
aged-y overflow. |
224 bool m_isBeingEvacuated; | 225 bool m_isBeingEvacuated; |
225 }; | 226 }; |
226 | 227 |
227 } // namespace blink | 228 } // namespace blink |
228 | 229 |
229 #endif // LayoutMultiColumnFlowThread_h | 230 #endif // LayoutMultiColumnFlowThread_h |
OLD | NEW |