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 #include "config.h" | |
6 | |
7 #include "core/layout/ColumnBalancer.h" | 5 #include "core/layout/ColumnBalancer.h" |
8 | 6 |
9 #include "core/layout/LayoutMultiColumnFlowThread.h" | 7 #include "core/layout/LayoutMultiColumnFlowThread.h" |
10 #include "core/layout/LayoutMultiColumnSet.h" | 8 #include "core/layout/LayoutMultiColumnSet.h" |
11 | 9 |
12 namespace blink { | 10 namespace blink { |
13 | 11 |
14 ColumnBalancer::ColumnBalancer(const MultiColumnFragmentainerGroup& group) | 12 ColumnBalancer::ColumnBalancer(const MultiColumnFragmentainerGroup& group) |
15 : m_group(group) | 13 : m_group(group) |
16 { | 14 { |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 recordSpaceShortage(logicalOffsetFromCurrentColumn + lineHeight - m_pend
ingStrut); | 323 recordSpaceShortage(logicalOffsetFromCurrentColumn + lineHeight - m_pend
ingStrut); |
326 m_pendingStrut = LayoutUnit::min(); | 324 m_pendingStrut = LayoutUnit::min(); |
327 return; | 325 return; |
328 } | 326 } |
329 ASSERT(isFirstAfterBreak(lineTopInFlowThread) || !line.paginationStrut() ||
!isLogicalTopWithinBounds(lineTopInFlowThread - line.paginationStrut())); | 327 ASSERT(isFirstAfterBreak(lineTopInFlowThread) || !line.paginationStrut() ||
!isLogicalTopWithinBounds(lineTopInFlowThread - line.paginationStrut())); |
330 if (isFirstAfterBreak(lineTopInFlowThread)) | 328 if (isFirstAfterBreak(lineTopInFlowThread)) |
331 recordSpaceShortage(lineHeight - line.paginationStrut()); | 329 recordSpaceShortage(lineHeight - line.paginationStrut()); |
332 } | 330 } |
333 | 331 |
334 } // namespace blink | 332 } // namespace blink |
OLD | NEW |