Changeset 24599 in webkit
- Timestamp:
- Jul 24, 2007 12:03:00 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 8 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r24582 r24599 1 2007-07-24 Beth Dakin <bdakin@apple.com> 2 3 Reviewed by Darin. 4 5 Tests for http://bugs.webkit.org/show_bug.cgi?id=14714 REGRESSION: 6 ASSERTION FAILED: i < size() in Vector.h:401 on negative -webkit- 7 column-width 8 - and - 9 http://bugs.webkit.org/show_bug.cgi?id=14718 REGRESSION: ASSERTION 10 FAILED: i < size() in Vector.h:401 on zero -webkit-column-count 11 12 * fast/multicol/negativeColumnWidth-expected.checksum: Added. 13 * fast/multicol/negativeColumnWidth-expected.png: Added. 14 * fast/multicol/negativeColumnWidth-expected.txt: Added. 15 * fast/multicol/negativeColumnWidth.html: Added. 16 * fast/multicol/zeroColumnCount-expected.checksum: Added. 17 * fast/multicol/zeroColumnCount-expected.png: Added. 18 * fast/multicol/zeroColumnCount-expected.txt: Added. 19 * fast/multicol/zeroColumnCount.html: Added. 20 1 21 2007-07-24 Mitz Pettel <mitz@webkit.org> 2 22 -
trunk/WebCore/ChangeLog
r24596 r24599 1 2007-07-24 Beth Dakin <bdakin@apple.com> 2 3 Reviewed by Darin. 4 5 Fix for http://bugs.webkit.org/show_bug.cgi?id=14714 REGRESSION: 6 ASSERTION FAILED: i < size() in Vector.h:401 on negative -webkit- 7 column-width 8 - and - 9 http://bugs.webkit.org/show_bug.cgi?id=14718 REGRESSION: ASSERTION 10 FAILED: i < size() in Vector.h:401 on zero -webkit-column-count 11 12 * rendering/RenderBlock.cpp: 13 (WebCore::RenderBlock::calcColumnWidth): Make 1 the minimum value 14 for column-width and column-count. Since the spec does not address 15 what to do with negative values for these properties, we are 16 patching the rendering code instead of the parser. 17 1 18 2007-07-24 Anders Carlsson <andersca@apple.com> 2 19 -
trunk/WebCore/rendering/RenderBlock.cpp
r24538 r24599 3121 3121 int availWidth = desiredColumnWidth; 3122 3122 int colGap = columnGap(); 3123 int colWidth = max(1, static_cast<int>(style()->columnWidth())); 3124 int colCount = max(1, static_cast<int>(style()->columnCount())); 3123 3125 3124 3126 if (style()->hasAutoColumnWidth()) { 3125 int colCount = style()->columnCount();3126 3127 if ((colCount - 1) * colGap < availWidth) { 3127 3128 desiredColumnCount = colCount; … … 3132 3133 } 3133 3134 } else if (style()->hasAutoColumnCount()) { 3134 int colWidth = static_cast<int>(style()->columnWidth());3135 3135 if (colWidth < availWidth) { 3136 3136 desiredColumnCount = (availWidth + colGap) / (colWidth + colGap); … … 3139 3139 } else { 3140 3140 // Both are set. 3141 int colWidth = static_cast<int>(style()->columnWidth());3142 int colCount = style()->columnCount();3143 3144 3141 if (colCount * colWidth + (colCount - 1) * colGap <= availWidth) { 3145 3142 desiredColumnCount = colCount;
Note: See TracChangeset
for help on using the changeset viewer.