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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 void columnRuleStyleDidChange(); | 159 void columnRuleStyleDidChange(); |
160 | 160 |
161 protected: | 161 protected: |
162 RenderMultiColumnFlowThread(); | 162 RenderMultiColumnFlowThread(); |
163 void setProgressionIsInline(bool isInline) { m_progressionIsInline = isInlin
e; } | 163 void setProgressionIsInline(bool isInline) { m_progressionIsInline = isInlin
e; } |
164 | 164 |
165 virtual void layout() override; | 165 virtual void layout() override; |
166 | 166 |
167 private: | 167 private: |
168 void calculateColumnCountAndWidth(LayoutUnit& width, unsigned& count) const; | 168 void calculateColumnCountAndWidth(LayoutUnit& width, unsigned& count) const; |
169 void createAndInsertMultiColumnSet(); | 169 void createAndInsertMultiColumnSet(RenderBox* insertBefore = 0); |
170 void createAndInsertSpannerPlaceholder(RenderBox* spanner); | 170 void createAndInsertSpannerPlaceholder(RenderBox* spanner, RenderBox* insert
Before = 0); |
171 virtual bool descendantIsValidColumnSpanner(RenderObject* descendant) const; | 171 virtual bool descendantIsValidColumnSpanner(RenderObject* descendant) const; |
172 | 172 |
173 virtual const char* renderName() const override; | 173 virtual const char* renderName() const override; |
174 virtual void addRegionToThread(RenderMultiColumnSet*) override; | 174 virtual void addRegionToThread(RenderMultiColumnSet*) override; |
175 virtual void willBeRemovedFromTree() override; | 175 virtual void willBeRemovedFromTree() override; |
176 virtual LayoutUnit skipColumnSpanner(RenderBox*, LayoutUnit logicalTopInFlow
Thread) override; | 176 virtual LayoutUnit skipColumnSpanner(RenderBox*, LayoutUnit logicalTopInFlow
Thread) override; |
177 virtual void flowThreadDescendantWasInserted(RenderObject*) override; | 177 virtual void flowThreadDescendantWasInserted(RenderObject*) override; |
178 virtual void flowThreadDescendantWillBeRemoved(RenderObject*) override; | 178 virtual void flowThreadDescendantWillBeRemoved(RenderObject*) override; |
179 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const override; | 179 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const override; |
180 virtual void updateLogicalWidth() override; | 180 virtual void updateLogicalWidth() override; |
(...skipping 11 matching lines...) Expand all Loading... |
192 LayoutUnit m_columnHeightAvailable; // Total height available to columns, or
0 if auto. | 192 LayoutUnit m_columnHeightAvailable; // Total height available to columns, or
0 if auto. |
193 bool m_inBalancingPass; // Set when relayouting for column balancing. | 193 bool m_inBalancingPass; // Set when relayouting for column balancing. |
194 bool m_needsColumnHeightsRecalculation; // Set when we need to recalculate t
he column set heights after layout. | 194 bool m_needsColumnHeightsRecalculation; // Set when we need to recalculate t
he column set heights after layout. |
195 bool m_progressionIsInline; // Always true for regular multicol. False for p
aged-y overflow. | 195 bool m_progressionIsInline; // Always true for regular multicol. False for p
aged-y overflow. |
196 bool m_isBeingEvacuated; | 196 bool m_isBeingEvacuated; |
197 }; | 197 }; |
198 | 198 |
199 } // namespace blink | 199 } // namespace blink |
200 | 200 |
201 #endif // RenderMultiColumnFlowThread_h | 201 #endif // RenderMultiColumnFlowThread_h |
OLD | NEW |