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

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

Issue 856383002: [New Multicolumn] Add RenderMultiColumnFlowThread::findSetRendering(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Final code review. 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
« no previous file with comments | « no previous file | Source/core/rendering/RenderMultiColumnFlowThread.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 117 }
118 // Return the last column set or spanner placeholder. 118 // Return the last column set or spanner placeholder.
119 RenderBox* lastMultiColumnBox() const 119 RenderBox* lastMultiColumnBox() const
120 { 120 {
121 RenderBox* lastSiblingBox = multiColumnBlockFlow()->lastChildBox(); 121 RenderBox* lastSiblingBox = multiColumnBlockFlow()->lastChildBox();
122 // The flow thread is the first child of the multicol container. If the flow thread is also 122 // The flow thread is the first child of the multicol container. If the flow thread is also
123 // the last child, it means that there are no siblings; i.e. we have no column boxes. 123 // the last child, it means that there are no siblings; i.e. we have no column boxes.
124 return lastSiblingBox != this ? lastSiblingBox : 0; 124 return lastSiblingBox != this ? lastSiblingBox : 0;
125 } 125 }
126 126
127 // Find the first set inside which the specified renderer would be rendered.
128 RenderMultiColumnSet* findSetRendering(RenderObject*) const;
129
127 // Return the spanner placeholder that belongs to the spanner in the contain ing block chain, if 130 // Return the spanner placeholder that belongs to the spanner in the contain ing block chain, if
128 // any. This includes the renderer for the element that actually establishes the spanner too. 131 // any. This includes the renderer for the element that actually establishes the spanner too.
129 RenderMultiColumnSpannerPlaceholder* containingColumnSpannerPlaceholder(cons t RenderObject* descendant) const; 132 RenderMultiColumnSpannerPlaceholder* containingColumnSpannerPlaceholder(cons t RenderObject* descendant) const;
130 133
131 // Populate the flow thread with what's currently its siblings. Called when a regular block 134 // Populate the flow thread with what's currently its siblings. Called when a regular block
132 // becomes a multicol container. 135 // becomes a multicol container.
133 void populate(); 136 void populate();
134 137
135 // Empty the flow thread by moving everything to the parent. Remove all mult icol specific 138 // Empty the flow thread by moving everything to the parent. Remove all mult icol specific
136 // renderers. Then destroy the flow thread. Called when a multicol container becomes a regular 139 // renderers. Then destroy the flow thread. Called when a multicol container becomes a regular
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 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.
190 bool m_inBalancingPass; // Set when relayouting for column balancing. 193 bool m_inBalancingPass; // Set when relayouting for column balancing.
191 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.
192 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.
193 bool m_isBeingEvacuated; 196 bool m_isBeingEvacuated;
194 }; 197 };
195 198
196 } // namespace blink 199 } // namespace blink
197 200
198 #endif // RenderMultiColumnFlowThread_h 201 #endif // RenderMultiColumnFlowThread_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderMultiColumnFlowThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698