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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 { | 93 { |
94 return lastFragmentainerGroup().logicalBottomInFlowThread(); | 94 return lastFragmentainerGroup().logicalBottomInFlowThread(); |
95 } | 95 } |
96 | 96 |
97 bool LayoutMultiColumnSet::heightIsAuto() const | 97 bool LayoutMultiColumnSet::heightIsAuto() const |
98 { | 98 { |
99 LayoutMultiColumnFlowThread* flowThread = multiColumnFlowThread(); | 99 LayoutMultiColumnFlowThread* flowThread = multiColumnFlowThread(); |
100 if (!flowThread->isLayoutPagedFlowThread()) { | 100 if (!flowThread->isLayoutPagedFlowThread()) { |
101 if (multiColumnBlockFlow()->style()->columnFill() == ColumnFillBalance) | 101 if (multiColumnBlockFlow()->style()->columnFill() == ColumnFillBalance) |
102 return true; | 102 return true; |
103 if (RenderBox* next = nextSiblingBox()) { | 103 if (LayoutBox* next = nextSiblingBox()) { |
104 if (next->isLayoutMultiColumnSpannerPlaceholder()) { | 104 if (next->isLayoutMultiColumnSpannerPlaceholder()) { |
105 // If we're followed by a spanner, we need to balance. | 105 // If we're followed by a spanner, we need to balance. |
106 return true; | 106 return true; |
107 } | 107 } |
108 } | 108 } |
109 } | 109 } |
110 return !flowThread->columnHeightAvailable(); | 110 return !flowThread->columnHeightAvailable(); |
111 } | 111 } |
112 | 112 |
113 LayoutSize LayoutMultiColumnSet::flowThreadTranslationAtOffset(LayoutUnit blockO
ffset) const | 113 LayoutSize LayoutMultiColumnSet::flowThreadTranslationAtOffset(LayoutUnit blockO
ffset) const |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 | 268 |
269 LayoutRect LayoutMultiColumnSet::flowThreadPortionRect() const | 269 LayoutRect LayoutMultiColumnSet::flowThreadPortionRect() const |
270 { | 270 { |
271 LayoutRect portionRect(LayoutUnit(), logicalTopInFlowThread(), pageLogicalWi
dth(), logicalHeightInFlowThread()); | 271 LayoutRect portionRect(LayoutUnit(), logicalTopInFlowThread(), pageLogicalWi
dth(), logicalHeightInFlowThread()); |
272 if (!isHorizontalWritingMode()) | 272 if (!isHorizontalWritingMode()) |
273 return portionRect.transposedRect(); | 273 return portionRect.transposedRect(); |
274 return portionRect; | 274 return portionRect; |
275 } | 275 } |
276 | 276 |
277 } | 277 } |
OLD | NEW |