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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 bool canHaveChildren() const final { return false; } | 79 bool canHaveChildren() const final { return false; } |
80 | 80 |
81 // Return the width and height of a single column or page in the set. | 81 // Return the width and height of a single column or page in the set. |
82 LayoutUnit pageLogicalWidth() const { return flowThread()->logicalWidth(); } | 82 LayoutUnit pageLogicalWidth() const { return flowThread()->logicalWidth(); } |
83 LayoutUnit pageLogicalHeightForOffset(LayoutUnit) const; | 83 LayoutUnit pageLogicalHeightForOffset(LayoutUnit) const; |
84 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule)
const; | 84 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule)
const; |
85 bool isPageLogicalHeightKnown() const; | 85 bool isPageLogicalHeightKnown() const; |
86 LayoutUnit tallestUnbreakableLogicalHeight() const { return m_tallestUnbreak
ableLogicalHeight; } | 86 LayoutUnit tallestUnbreakableLogicalHeight() const { return m_tallestUnbreak
ableLogicalHeight; } |
87 void propagateTallestUnbreakableLogicalHeight(LayoutUnit value) { m_tallestU
nbreakableLogicalHeight = std::max(value, m_tallestUnbreakableLogicalHeight); } | 87 void propagateTallestUnbreakableLogicalHeight(LayoutUnit value) { m_tallestU
nbreakableLogicalHeight = std::max(value, m_tallestUnbreakableLogicalHeight); } |
88 | 88 |
| 89 LayoutUnit nextLogicalTopForUnbreakableContent(LayoutUnit flowThreadOffset,
LayoutUnit contentLogicalHeight) const; |
| 90 |
89 LayoutFlowThread* flowThread() const { return m_flowThread; } | 91 LayoutFlowThread* flowThread() const { return m_flowThread; } |
90 | 92 |
91 LayoutBlockFlow* multiColumnBlockFlow() const { return toLayoutBlockFlow(par
ent()); } | 93 LayoutBlockFlow* multiColumnBlockFlow() const { return toLayoutBlockFlow(par
ent()); } |
92 LayoutMultiColumnFlowThread* multiColumnFlowThread() const { return toLayout
MultiColumnFlowThread(flowThread()); } | 94 LayoutMultiColumnFlowThread* multiColumnFlowThread() const { return toLayout
MultiColumnFlowThread(flowThread()); } |
93 | 95 |
94 LayoutMultiColumnSet* nextSiblingMultiColumnSet() const; | 96 LayoutMultiColumnSet* nextSiblingMultiColumnSet() const; |
95 LayoutMultiColumnSet* previousSiblingMultiColumnSet() const; | 97 LayoutMultiColumnSet* previousSiblingMultiColumnSet() const; |
96 | 98 |
97 MultiColumnFragmentainerGroup& appendNewFragmentainerGroup(); | 99 MultiColumnFragmentainerGroup& appendNewFragmentainerGroup(); |
98 | 100 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 // largest one among them. | 182 // largest one among them. |
181 LayoutUnit m_tallestUnbreakableLogicalHeight; | 183 LayoutUnit m_tallestUnbreakableLogicalHeight; |
182 }; | 184 }; |
183 | 185 |
184 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); | 186 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); |
185 | 187 |
186 } // namespace blink | 188 } // namespace blink |
187 | 189 |
188 #endif // LayoutMultiColumnSet_h | 190 #endif // LayoutMultiColumnSet_h |
189 | 191 |
OLD | NEW |