| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 // The used CSS value of column-count, i.e. how many columns there are room
for without overflowing. | 90 // The used CSS value of column-count, i.e. how many columns there are room
for without overflowing. |
| 91 unsigned usedColumnCount() const { return multiColumnFlowThread()->columnCou
nt(); } | 91 unsigned usedColumnCount() const { return multiColumnFlowThread()->columnCou
nt(); } |
| 92 | 92 |
| 93 bool heightIsAuto() const; | 93 bool heightIsAuto() const; |
| 94 | 94 |
| 95 // Find the column that contains the given block offset, and return the tran
slation needed to | 95 // Find the column that contains the given block offset, and return the tran
slation needed to |
| 96 // get from flow thread coordinates to visual coordinates. | 96 // get from flow thread coordinates to visual coordinates. |
| 97 LayoutSize flowThreadTranslationAtOffset(LayoutUnit) const; | 97 LayoutSize flowThreadTranslationAtOffset(LayoutUnit) const; |
| 98 | 98 |
| 99 LayoutPoint visualPointToFlowThreadPoint(const LayoutPoint& visualPoint) con
st; |
| 100 |
| 99 void updateMinimumColumnHeight(LayoutUnit offsetInFlowThread, LayoutUnit hei
ght); | 101 void updateMinimumColumnHeight(LayoutUnit offsetInFlowThread, LayoutUnit hei
ght); |
| 100 | 102 |
| 101 // Add a content run, specified by its end position. A content run is append
ed at every | 103 // Add a content run, specified by its end position. A content run is append
ed at every |
| 102 // forced/explicit break and at the end of the column set. The content runs
are used to | 104 // forced/explicit break and at the end of the column set. The content runs
are used to |
| 103 // determine where implicit/soft breaks will occur, in order to calculate an
initial column | 105 // determine where implicit/soft breaks will occur, in order to calculate an
initial column |
| 104 // height. | 106 // height. |
| 105 void addContentRun(LayoutUnit endOffsetFromFirstPage); | 107 void addContentRun(LayoutUnit endOffsetFromFirstPage); |
| 106 | 108 |
| 107 // (Re-)calculate the column height if it's auto. This is first and foremost
needed by sets that | 109 // (Re-)calculate the column height if it's auto. This is first and foremost
needed by sets that |
| 108 // are to balance the column height, but even when it isn't to be balanced,
this is necessary if | 110 // are to balance the column height, but even when it isn't to be balanced,
this is necessary if |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 171 |
| 170 MultiColumnFragmentainerGroupList m_fragmentainerGroups; | 172 MultiColumnFragmentainerGroupList m_fragmentainerGroups; |
| 171 }; | 173 }; |
| 172 | 174 |
| 173 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); | 175 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); |
| 174 | 176 |
| 175 } // namespace blink | 177 } // namespace blink |
| 176 | 178 |
| 177 #endif // LayoutMultiColumnSet_h | 179 #endif // LayoutMultiColumnSet_h |
| 178 | 180 |
| OLD | NEW |