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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 { | 264 { |
265 LayoutMultiColumnFlowThread* flowThread = multiColumnFlowThread(); | 265 LayoutMultiColumnFlowThread* flowThread = multiColumnFlowThread(); |
266 if (!flowThread->isLayoutPagedFlowThread()) { | 266 if (!flowThread->isLayoutPagedFlowThread()) { |
267 // If support for the column-fill property isn't enabled, we want to beh
ave as if | 267 // If support for the column-fill property isn't enabled, we want to beh
ave as if |
268 // column-fill were auto, so that multicol containers with specified hei
ght don't get their | 268 // column-fill were auto, so that multicol containers with specified hei
ght don't get their |
269 // columns balanced (auto-height multicol containers will still get thei
r columns balanced, | 269 // columns balanced (auto-height multicol containers will still get thei
r columns balanced, |
270 // even if column-fill isn't 'balance' - in accordance with the spec). P
retending that | 270 // even if column-fill isn't 'balance' - in accordance with the spec). P
retending that |
271 // column-fill is auto also matches the old multicol implementation, whi
ch has no support | 271 // column-fill is auto also matches the old multicol implementation, whi
ch has no support |
272 // for this property. | 272 // for this property. |
273 if (RuntimeEnabledFeatures::columnFillEnabled()) { | 273 if (RuntimeEnabledFeatures::columnFillEnabled()) { |
274 if (multiColumnBlockFlow()->style()->columnFill() == ColumnFillBalan
ce) | 274 if (multiColumnBlockFlow()->style()->getColumnFill() == ColumnFillBa
lance) |
275 return true; | 275 return true; |
276 } | 276 } |
277 if (LayoutBox* next = nextSiblingBox()) { | 277 if (LayoutBox* next = nextSiblingBox()) { |
278 if (next->isLayoutMultiColumnSpannerPlaceholder()) { | 278 if (next->isLayoutMultiColumnSpannerPlaceholder()) { |
279 // If we're followed by a spanner, we need to balance. | 279 // If we're followed by a spanner, we need to balance. |
280 return true; | 280 return true; |
281 } | 281 } |
282 } | 282 } |
283 } | 283 } |
284 return !flowThread->columnHeightAvailable(); | 284 return !flowThread->columnHeightAvailable(); |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 | 452 |
453 LayoutRect LayoutMultiColumnSet::flowThreadPortionRect() const | 453 LayoutRect LayoutMultiColumnSet::flowThreadPortionRect() const |
454 { | 454 { |
455 LayoutRect portionRect(LayoutUnit(), logicalTopInFlowThread(), pageLogicalWi
dth(), logicalHeightInFlowThread()); | 455 LayoutRect portionRect(LayoutUnit(), logicalTopInFlowThread(), pageLogicalWi
dth(), logicalHeightInFlowThread()); |
456 if (!isHorizontalWritingMode()) | 456 if (!isHorizontalWritingMode()) |
457 return portionRect.transposedRect(); | 457 return portionRect.transposedRect(); |
458 return portionRect; | 458 return portionRect; |
459 } | 459 } |
460 | 460 |
461 } // namespace blink | 461 } // namespace blink |
OLD | NEW |