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

Side by Side Diff: Source/core/rendering/RenderMultiColumnFlowThread.h

Issue 869583002: [New Multicolumn] Support dynamic insertion and removal of multicol content. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 months 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698