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