Changeset 51517 in webkit
- Timestamp:
- Nov 30, 2009 3:55:38 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r51516 r51517 1 2009-11-30 Beth Dakin <bdakin@apple.com> 2 3 Reviewed by Oliver Hunt. 4 5 Test for https://bugs.webkit.org/show_bug.cgi?id=32000 Crash in 6 Safari caused by extreme column-gap and column-width values 7 -and corresponding- 8 <rdar://problem/7425433> 9 10 * fast/multicol/huge-column-gap-crash-expected.txt: Added. 11 * fast/multicol/huge-column-gap-crash.html: Added. 12 1 13 2009-11-30 Alexey Proskuryakov <ap@apple.com> 2 14 -
trunk/WebCore/ChangeLog
r51516 r51517 1 2009-11-30 Beth Dakin <bdakin@apple.com> 2 3 Reviewed by Oliver Hunt. 4 5 Fix for https://bugs.webkit.org/show_bug.cgi?id=32000 Crash in 6 Safari caused by extreme column-gap and column-width values 7 -and corresponding- 8 <rdar://problem/7425433> 9 10 Prevent desiredColumnCount from being less than 1 since it is used 11 as a divisor. 12 * rendering/RenderBlock.cpp: 13 (WebCore::RenderBlock::calcColumnWidth): 14 1 15 2009-11-30 Alexey Proskuryakov <ap@apple.com> 2 16 -
trunk/WebCore/rendering/RenderBlock.cpp
r51429 r51517 3554 3554 } else if (colGap < availWidth) { 3555 3555 desiredColumnCount = availWidth / colGap; 3556 if (desiredColumnCount < 1) 3557 desiredColumnCount = 1; 3556 3558 desiredColumnWidth = (availWidth - (desiredColumnCount - 1) * colGap) / desiredColumnCount; 3557 3559 } … … 3559 3561 if (colWidth < availWidth) { 3560 3562 desiredColumnCount = (availWidth + colGap) / (colWidth + colGap); 3563 if (desiredColumnCount < 1) 3564 desiredColumnCount = 1; 3561 3565 desiredColumnWidth = (availWidth - (desiredColumnCount - 1) * colGap) / desiredColumnCount; 3562 3566 } … … 3568 3572 } else if (colWidth < availWidth) { 3569 3573 desiredColumnCount = (availWidth + colGap) / (colWidth + colGap); 3574 if (desiredColumnCount < 1) 3575 desiredColumnCount = 1; 3570 3576 desiredColumnWidth = (availWidth - (desiredColumnCount - 1) * colGap) / desiredColumnCount; 3571 3577 }
Note: See TracChangeset
for help on using the changeset viewer.