| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 unsigned usedColumnCount() const { return multiColumnFlowThread()->columnCou
nt(); } | 104 unsigned usedColumnCount() const { return multiColumnFlowThread()->columnCou
nt(); } |
| 105 | 105 |
| 106 bool heightIsAuto() const; | 106 bool heightIsAuto() const; |
| 107 | 107 |
| 108 // Find the column that contains the given block offset, and return the tran
slation needed to | 108 // Find the column that contains the given block offset, and return the tran
slation needed to |
| 109 // get from flow thread coordinates to visual coordinates. | 109 // get from flow thread coordinates to visual coordinates. |
| 110 LayoutSize flowThreadTranslationAtOffset(LayoutUnit) const; | 110 LayoutSize flowThreadTranslationAtOffset(LayoutUnit) const; |
| 111 | 111 |
| 112 LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPoint) con
st; | 112 LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPoint) con
st; |
| 113 | 113 |
| 114 void updateMinimumColumnHeight(LayoutUnit offsetInFlowThread, LayoutUnit hei
ght); | |
| 115 | |
| 116 // (Re-)calculate the column height if it's auto. This is first and foremost
needed by sets that | 114 // (Re-)calculate the column height if it's auto. This is first and foremost
needed by sets that |
| 117 // are to balance the column height, but even when it isn't to be balanced,
this is necessary if | 115 // are to balance the column height, but even when it isn't to be balanced,
this is necessary if |
| 118 // the multicol container's height is constrained. | 116 // the multicol container's height is constrained. |
| 119 bool recalculateColumnHeight(BalancedColumnHeightCalculation); | 117 bool recalculateColumnHeight(BalancedColumnHeightCalculation); |
| 120 | 118 |
| 121 // Reset previously calculated column height. Will mark for layout if needed
. | 119 // Reset previously calculated column height. Will mark for layout if needed
. |
| 122 void resetColumnHeight(); | 120 void resetColumnHeight(); |
| 123 | 121 |
| 124 // Layout of flow thread content that's to be rendered inside this column se
t begins. This | 122 // Layout of flow thread content that's to be rendered inside this column se
t begins. This |
| 125 // happens at the beginning of flow thread layout, and when advancing from a
previous column set | 123 // happens at the beginning of flow thread layout, and when advancing from a
previous column set |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 MultiColumnFragmentainerGroupList m_fragmentainerGroups; | 169 MultiColumnFragmentainerGroupList m_fragmentainerGroups; |
| 172 LayoutFlowThread* m_flowThread; | 170 LayoutFlowThread* m_flowThread; |
| 173 }; | 171 }; |
| 174 | 172 |
| 175 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); | 173 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); |
| 176 | 174 |
| 177 } // namespace blink | 175 } // namespace blink |
| 178 | 176 |
| 179 #endif // LayoutMultiColumnSet_h | 177 #endif // LayoutMultiColumnSet_h |
| 180 | 178 |
| OLD | NEW |