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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 protected: | 183 protected: |
184 LayoutMultiColumnFlowThread(); | 184 LayoutMultiColumnFlowThread(); |
185 void setProgressionIsInline(bool isInline) { m_progressionIsInline = isInlin
e; } | 185 void setProgressionIsInline(bool isInline) { m_progressionIsInline = isInlin
e; } |
186 | 186 |
187 virtual void layout() override; | 187 virtual void layout() override; |
188 | 188 |
189 private: | 189 private: |
190 void calculateColumnCountAndWidth(LayoutUnit& width, unsigned& count) const; | 190 void calculateColumnCountAndWidth(LayoutUnit& width, unsigned& count) const; |
191 void createAndInsertMultiColumnSet(LayoutBox* insertBefore = nullptr); | 191 void createAndInsertMultiColumnSet(LayoutBox* insertBefore = nullptr); |
192 void createAndInsertSpannerPlaceholder(LayoutBox* spanner, LayoutBox* insert
Before = nullptr); | 192 void createAndInsertSpannerPlaceholder(LayoutBox* spannerObjectInFlowThread,
LayoutObject* insertedBeforeInFlowThread); |
| 193 void destroySpannerPlaceholder(LayoutMultiColumnSpannerPlaceholder*); |
193 virtual bool descendantIsValidColumnSpanner(LayoutObject* descendant) const; | 194 virtual bool descendantIsValidColumnSpanner(LayoutObject* descendant) const; |
194 | 195 |
195 virtual void addColumnSetToThread(LayoutMultiColumnSet*) override; | 196 virtual void addColumnSetToThread(LayoutMultiColumnSet*) override; |
196 virtual void willBeRemovedFromTree() override; | 197 virtual void willBeRemovedFromTree() override; |
197 virtual LayoutUnit skipColumnSpanner(LayoutBox*, LayoutUnit logicalTopInFlow
Thread) override; | 198 virtual LayoutUnit skipColumnSpanner(LayoutBox*, LayoutUnit logicalTopInFlow
Thread) override; |
198 virtual void flowThreadDescendantWasInserted(LayoutObject*) override; | 199 virtual void flowThreadDescendantWasInserted(LayoutObject*) override; |
199 virtual void flowThreadDescendantWillBeRemoved(LayoutObject*) override; | 200 virtual void flowThreadDescendantWillBeRemoved(LayoutObject*) override; |
200 virtual void flowThreadDescendantStyleWillChange(LayoutObject*, StyleDiffere
nce, const ComputedStyle& newStyle) override; | 201 virtual void flowThreadDescendantStyleWillChange(LayoutObject*, StyleDiffere
nce, const ComputedStyle& newStyle) override; |
201 virtual void flowThreadDescendantStyleDidChange(LayoutObject*, StyleDifferen
ce, const ComputedStyle& oldStyle) override; | 202 virtual void flowThreadDescendantStyleDidChange(LayoutObject*, StyleDifferen
ce, const ComputedStyle& oldStyle) override; |
202 virtual void computePreferredLogicalWidths() override; | 203 virtual void computePreferredLogicalWidths() override; |
(...skipping 13 matching lines...) Expand all Loading... |
216 LayoutUnit m_columnHeightAvailable; // Total height available to columns, or
0 if auto. | 217 LayoutUnit m_columnHeightAvailable; // Total height available to columns, or
0 if auto. |
217 bool m_inBalancingPass; // Set when relayouting for column balancing. | 218 bool m_inBalancingPass; // Set when relayouting for column balancing. |
218 bool m_needsColumnHeightsRecalculation; // Set when we need to recalculate t
he column set heights after layout. | 219 bool m_needsColumnHeightsRecalculation; // Set when we need to recalculate t
he column set heights after layout. |
219 bool m_progressionIsInline; // Always true for regular multicol. False for p
aged-y overflow. | 220 bool m_progressionIsInline; // Always true for regular multicol. False for p
aged-y overflow. |
220 bool m_isBeingEvacuated; | 221 bool m_isBeingEvacuated; |
221 }; | 222 }; |
222 | 223 |
223 } // namespace blink | 224 } // namespace blink |
224 | 225 |
225 #endif // LayoutMultiColumnFlowThread_h | 226 #endif // LayoutMultiColumnFlowThread_h |
OLD | NEW |