Changeset 16993 in webkit
- Timestamp:
- Oct 11, 2006, 11:27:49 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r16991 r16993 1 2006-10-11 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Geoff. 4 5 Test case for http://bugs.webkit.org/show_bug.cgi?id=11251 6 7 * fast/canvas/zero-size-fill-rect-expected.checksum: Added. 8 * fast/canvas/zero-size-fill-rect-expected.png: Added. 9 * fast/canvas/zero-size-fill-rect-expected.txt: Added. 10 * fast/canvas/zero-size-fill-rect.html: Added. 11 1 12 2006-10-11 Rob Buis <buis@kde.org> 2 13 -
trunk/WebCore/ChangeLog
r16991 r16993 1 2006-10-11 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Adam. 4 5 Fix for http://bugs.webkit.org/show_bug.cgi?id=11251 6 Corrects canvas tag to not throw JS exception when drawing 7 zero sized rects, arcs, etc 8 9 * html/CanvasRenderingContext2D.cpp: 10 (WebCore::CanvasRenderingContext2D::arcTo): 11 (WebCore::CanvasRenderingContext2D::arc): 12 (WebCore::CanvasRenderingContext2D::rect): 13 (WebCore::CanvasRenderingContext2D::clearRect): 14 (WebCore::CanvasRenderingContext2D::fillRect): 15 (WebCore::CanvasRenderingContext2D::strokeRect): 16 1 17 2006-10-11 Rob Buis <buis@kde.org> 2 18 -
trunk/WebCore/html/CanvasRenderingContext2D.cpp
r16952 r16993 388 388 { 389 389 ec = 0; 390 if ( !(r > 0)) {390 if (r < 0) { 391 391 ec = INDEX_SIZE_ERR; 392 392 return; … … 398 398 { 399 399 ec = 0; 400 if ( !(r > 0)) {400 if (r < 0) { 401 401 ec = INDEX_SIZE_ERR; 402 402 return; … … 408 408 { 409 409 ec = 0; 410 if ( !(width > 0 && height > 0)) {410 if (width < 0 || height < 0) { 411 411 ec = INDEX_SIZE_ERR; 412 412 return; … … 483 483 { 484 484 ec = 0; 485 if ( !(width > 0 && height > 0)) {485 if (width < 0 || height < 0) { 486 486 ec = INDEX_SIZE_ERR; 487 487 return; … … 499 499 ec = 0; 500 500 501 if ( !(width > 0 && height > 0)) {501 if (width < 0 || height < 0) { 502 502 ec = INDEX_SIZE_ERR; 503 503 return; … … 536 536 ec = 0; 537 537 538 if ( !(width > 0 && height > 0 && lineWidth > 0)) {538 if (width < 0 || height < 0 || lineWidth < 0) { 539 539 ec = INDEX_SIZE_ERR; 540 540 return;
Note:
See TracChangeset
for help on using the changeset viewer.