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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 { | 222 { |
223 if (RenderMultiColumnSet* multicolSet = toRenderMultiColumnSet(regionAtBlock
Offset(offset))) { | 223 if (RenderMultiColumnSet* multicolSet = toRenderMultiColumnSet(regionAtBlock
Offset(offset))) { |
224 multicolSet->addForcedBreak(offset); | 224 multicolSet->addForcedBreak(offset); |
225 if (offsetBreakAdjustment) | 225 if (offsetBreakAdjustment) |
226 *offsetBreakAdjustment = pageLogicalHeightForOffset(offset) ? pageRe
mainingLogicalHeightForOffset(offset, IncludePageBoundary) : LayoutUnit(); | 226 *offsetBreakAdjustment = pageLogicalHeightForOffset(offset) ? pageRe
mainingLogicalHeightForOffset(offset, IncludePageBoundary) : LayoutUnit(); |
227 return true; | 227 return true; |
228 } | 228 } |
229 return false; | 229 return false; |
230 } | 230 } |
231 | 231 |
| 232 bool RenderMultiColumnFlowThread::isPageLogicalHeightKnown() const |
| 233 { |
| 234 for (RenderBox* renderer = parentBox()->lastChildBox(); renderer; renderer =
renderer->previousSiblingBox()) { |
| 235 if (renderer->isRenderMultiColumnSet()) |
| 236 return toRenderMultiColumnSet(renderer)->computedColumnHeight(); |
| 237 } |
| 238 // A column set hasn't been created yet. Height may already be known if colu
mn-fill is 'auto', though. |
| 239 return !requiresBalancing(); |
232 } | 240 } |
| 241 |
| 242 } |
OLD | NEW |