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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 bool hasFragmentainerGroupForColumnAt(LayoutUnit bottomOffsetInFlowThread, P
ageBoundaryRule) const; | 100 bool hasFragmentainerGroupForColumnAt(LayoutUnit bottomOffsetInFlowThread, P
ageBoundaryRule) const; |
101 | 101 |
102 MultiColumnFragmentainerGroup& appendNewFragmentainerGroup(); | 102 MultiColumnFragmentainerGroup& appendNewFragmentainerGroup(); |
103 | 103 |
104 // Logical top relative to the content edge of the multicol container. | 104 // Logical top relative to the content edge of the multicol container. |
105 LayoutUnit logicalTopFromMulticolContentEdge() const; | 105 LayoutUnit logicalTopFromMulticolContentEdge() const; |
106 | 106 |
107 LayoutUnit logicalTopInFlowThread() const; | 107 LayoutUnit logicalTopInFlowThread() const; |
108 LayoutUnit logicalBottomInFlowThread() const; | 108 LayoutUnit logicalBottomInFlowThread() const; |
109 LayoutUnit logicalHeightInFlowThread() const { return logicalBottomInFlowThr
ead() - logicalTopInFlowThread(); } | 109 LayoutUnit logicalHeightInFlowThread() const { return logicalBottomInFlowThr
ead() - logicalTopInFlowThread(); } |
| 110 |
| 111 // Return the amount of flow thread contents that the specified fragmentaine
r group can hold |
| 112 // without overflowing. |
| 113 LayoutUnit fragmentainerGroupCapacity(const MultiColumnFragmentainerGroup &g
roup) const { return group.logicalHeight() * usedColumnCount(); } |
| 114 |
110 LayoutRect flowThreadPortionRect() const; | 115 LayoutRect flowThreadPortionRect() const; |
111 LayoutRect flowThreadPortionOverflowRect() const; | 116 LayoutRect flowThreadPortionOverflowRect() const; |
112 LayoutRect overflowRectForFlowThreadPortion(const LayoutRect& flowThreadPort
ionRect, bool isFirstPortion, bool isLastPortion) const; | 117 LayoutRect overflowRectForFlowThreadPortion(const LayoutRect& flowThreadPort
ionRect, bool isFirstPortion, bool isLastPortion) const; |
113 | 118 |
114 // The used CSS value of column-count, i.e. how many columns there are room
for without overflowing. | 119 // The used CSS value of column-count, i.e. how many columns there are room
for without overflowing. |
115 unsigned usedColumnCount() const { return multiColumnFlowThread()->columnCou
nt(); } | 120 unsigned usedColumnCount() const { return multiColumnFlowThread()->columnCou
nt(); } |
116 | 121 |
117 bool heightIsAuto() const; | 122 bool heightIsAuto() const; |
118 | 123 |
119 // Find the column that contains the given block offset, and return the tran
slation needed to | 124 // Find the column that contains the given block offset, and return the tran
slation needed to |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 203 |
199 bool m_initialHeightCalculated; | 204 bool m_initialHeightCalculated; |
200 }; | 205 }; |
201 | 206 |
202 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); | 207 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); |
203 | 208 |
204 } // namespace blink | 209 } // namespace blink |
205 | 210 |
206 #endif // LayoutMultiColumnSet_h | 211 #endif // LayoutMultiColumnSet_h |
207 | 212 |
OLD | NEW |