| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ColumnBalancer_h |
| 6 #define ColumnBalancer_h |
| 7 |
| 5 #include "core/layout/LayoutMultiColumnSet.h" | 8 #include "core/layout/LayoutMultiColumnSet.h" |
| 6 | 9 |
| 7 namespace blink { | 10 namespace blink { |
| 8 | 11 |
| 9 // A column balancer traverses a portion of the subtree of a flow thread that | 12 // A column balancer traverses a portion of the subtree of a flow thread that |
| 10 // belongs to one or more fragmentainer groups within one column set, in order | 13 // belongs to one or more fragmentainer groups within one column set, in order |
| 11 // to collect certain data to be used for column balancing. This is an abstract | 14 // to collect certain data to be used for column balancing. This is an abstract |
| 12 // class that just walks the subtree and leaves it to subclasses to actually | 15 // class that just walks the subtree and leaves it to subclasses to actually |
| 13 // collect data. | 16 // collect data. |
| 14 class ColumnBalancer { | 17 class ColumnBalancer { |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 266 |
| 264 // Set when breaking before a block, and we're looking for the first | 267 // Set when breaking before a block, and we're looking for the first |
| 265 // unbreakable descendant, in order to report correct space shortage for that | 268 // unbreakable descendant, in order to report correct space shortage for that |
| 266 // one. | 269 // one. |
| 267 LayoutUnit m_pendingStrut; | 270 LayoutUnit m_pendingStrut; |
| 268 | 271 |
| 269 unsigned m_forcedBreaksCount; | 272 unsigned m_forcedBreaksCount; |
| 270 }; | 273 }; |
| 271 | 274 |
| 272 } // namespace blink | 275 } // namespace blink |
| 276 |
| 277 #endif // ColumnBalancer_h |
| OLD | NEW |