| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 LayoutBlockFlow* multiColumnBlockFlow() const { | 129 LayoutBlockFlow* multiColumnBlockFlow() const { |
| 130 return toLayoutBlockFlow(parent()); | 130 return toLayoutBlockFlow(parent()); |
| 131 } | 131 } |
| 132 LayoutMultiColumnFlowThread* multiColumnFlowThread() const { | 132 LayoutMultiColumnFlowThread* multiColumnFlowThread() const { |
| 133 return toLayoutMultiColumnFlowThread(flowThread()); | 133 return toLayoutMultiColumnFlowThread(flowThread()); |
| 134 } | 134 } |
| 135 | 135 |
| 136 LayoutMultiColumnSet* nextSiblingMultiColumnSet() const; | 136 LayoutMultiColumnSet* nextSiblingMultiColumnSet() const; |
| 137 LayoutMultiColumnSet* previousSiblingMultiColumnSet() const; | 137 LayoutMultiColumnSet* previousSiblingMultiColumnSet() const; |
| 138 | 138 |
| 139 // Return true if we have a fragmentainer group that can hold a column at the | 139 // Return true if we need to create additional fragmentainer group(s) to hold |
| 140 // specified flow thread block offset. | 140 // a column at the specified flow thread block offset. |
| 141 bool hasFragmentainerGroupForColumnAt(LayoutUnit bottomOffsetInFlowThread, | 141 bool needsNewFragmentainerGroupAt(LayoutUnit bottomOffsetInFlowThread, |
| 142 PageBoundaryRule) const; | 142 PageBoundaryRule) const; |
| 143 | 143 |
| 144 MultiColumnFragmentainerGroup& appendNewFragmentainerGroup(); | 144 MultiColumnFragmentainerGroup& appendNewFragmentainerGroup(); |
| 145 | 145 |
| 146 // Logical top relative to the content edge of the multicol container. | 146 // Logical top relative to the content edge of the multicol container. |
| 147 LayoutUnit logicalTopFromMulticolContentEdge() const; | 147 LayoutUnit logicalTopFromMulticolContentEdge() const; |
| 148 | 148 |
| 149 LayoutUnit logicalTopInFlowThread() const; | 149 LayoutUnit logicalTopInFlowThread() const; |
| 150 LayoutUnit logicalBottomInFlowThread() const; | 150 LayoutUnit logicalBottomInFlowThread() const; |
| 151 LayoutUnit logicalHeightInFlowThread() const { | 151 LayoutUnit logicalHeightInFlowThread() const { |
| 152 // Due to negative margins, logical bottom may actually end up above logical | 152 // Due to negative margins, logical bottom may actually end up above logical |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 LayoutUnit m_oldLogicalTop; | 271 LayoutUnit m_oldLogicalTop; |
| 272 | 272 |
| 273 bool m_initialHeightCalculated; | 273 bool m_initialHeightCalculated; |
| 274 }; | 274 }; |
| 275 | 275 |
| 276 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); | 276 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); |
| 277 | 277 |
| 278 } // namespace blink | 278 } // namespace blink |
| 279 | 279 |
| 280 #endif // LayoutMultiColumnSet_h | 280 #endif // LayoutMultiColumnSet_h |
| OLD | NEW |