Changeset 69727 in webkit
- Timestamp:
- Oct 13, 2010 7:13:10 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r69721 r69727 1 2010-09-23 James Robinson <jamesr@chromium.org> 2 3 Reviewed by Darin Adler. 4 5 Canvas: radialGradient with negative radius should throw exception 6 https://bugs.webkit.org/show_bug.cgi?id=37176 7 8 Remove test from skipped lists now that it passes. 9 10 * platform/chromium/test_expectations.txt: 11 * platform/gtk/Skipped: 12 * platform/mac/Skipped: 13 * platform/qt/Skipped: 14 1 15 2010-10-13 Jeremy Orlow <jorlow@chromium.org> 2 16 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r69702 r69727 2569 2569 BUG45991 : canvas/philip/tests/2d.fillStyle.parse.current.removed.html = TEXT PASS 2570 2570 BUG45991 : canvas/philip/tests/2d.fillStyle.parse.system.html = TEXT PASS 2571 BUG45991 : canvas/philip/tests/2d.gradient.radial.negative.html = TEXT PASS2572 2571 BUG45991 : canvas/philip/tests/2d.imageData.get.source.negative.html = TEXT PASS 2573 2572 BUG45991 : canvas/philip/tests/2d.path.rect.winding.html = TEXT PASS -
trunk/LayoutTests/platform/gtk/Skipped
r69676 r69727 5572 5572 canvas/philip/tests/2d.gradient.radial.inside2.html 5573 5573 canvas/philip/tests/2d.gradient.radial.inside3.html 5574 canvas/philip/tests/2d.gradient.radial.negative.html5575 5574 canvas/philip/tests/2d.gradient.radial.outside1.html 5576 5575 canvas/philip/tests/2d.imageData.create1.type.html -
trunk/LayoutTests/platform/mac/Skipped
r69654 r69727 178 178 canvas/philip/tests/2d.gradient.radial.inside2.html 179 179 canvas/philip/tests/2d.gradient.radial.inside3.html 180 canvas/philip/tests/2d.gradient.radial.negative.html181 180 canvas/philip/tests/2d.gradient.radial.outside1.html 182 181 canvas/philip/tests/2d.imageData.create1.type.html -
trunk/LayoutTests/platform/qt/Skipped
r69684 r69727 5189 5189 canvas/philip/tests/2d.gradient.radial.cone.shape2.html 5190 5190 canvas/philip/tests/2d.gradient.radial.cone.top.html 5191 canvas/philip/tests/2d.gradient.radial.negative.html5192 5191 canvas/philip/tests/2d.gradient.radial.touch1.html 5193 5192 canvas/philip/tests/2d.gradient.radial.touch2.html -
trunk/WebCore/ChangeLog
r69726 r69727 1 2010-10-13 James Robinson <jamesr@chromium.org> 2 3 Reviewed by Darin Adler. 4 5 Throw INDEX_SIZE_ERR exception if createRadialGradient is called with a negative radius 6 Canvas: radialGradient with negative radius should throw exception 7 https://bugs.webkit.org/show_bug.cgi?id=37176 8 9 This matches the canvas 2d specification, Opera, IE9 beta and our behavior for arc() 10 and arcTo(). Also fixes some PassRefPtr/RefPtr errors in this file. 11 12 Test: canvas/philip/tests/2d.gradient.radial.negative.html 13 14 * html/canvas/CanvasRenderingContext2D.cpp: 15 (WebCore::CanvasRenderingContext2D::createLinearGradient): 16 (WebCore::CanvasRenderingContext2D::createRadialGradient): 17 (WebCore::createEmptyImageData): 18 (WebCore::CanvasRenderingContext2D::measureText): 19 1 20 2010-10-13 Fridrich Strba <fridrich.strba@bluewin.ch> 2 21 -
trunk/WebCore/html/canvas/CanvasRenderingContext2D.cpp
r69619 r69727 1403 1403 } 1404 1404 1405 PassRefPtr<CanvasGradient> gradient = CanvasGradient::create(FloatPoint(x0, y0), FloatPoint(x1, y1));1405 RefPtr<CanvasGradient> gradient = CanvasGradient::create(FloatPoint(x0, y0), FloatPoint(x1, y1)); 1406 1406 prepareGradientForDashboard(gradient.get()); 1407 return gradient ;1407 return gradient.release(); 1408 1408 } 1409 1409 … … 1414 1414 return 0; 1415 1415 } 1416 PassRefPtr<CanvasGradient> gradient = CanvasGradient::create(FloatPoint(x0, y0), r0, FloatPoint(x1, y1), r1); 1416 1417 if (r0 < 0 || r1 < 0) { 1418 ec = INDEX_SIZE_ERR; 1419 return 0; 1420 } 1421 1422 RefPtr<CanvasGradient> gradient = CanvasGradient::create(FloatPoint(x0, y0), r0, FloatPoint(x1, y1), r1); 1417 1423 prepareGradientForDashboard(gradient.get()); 1418 return gradient ;1424 return gradient.release(); 1419 1425 } 1420 1426 … … 1514 1520 RefPtr<ImageData> data = ImageData::create(size.width(), size.height()); 1515 1521 memset(data->data()->data()->data(), 0, data->data()->data()->length()); 1516 return data. get();1522 return data.release(); 1517 1523 } 1518 1524 … … 1733 1739 #endif 1734 1740 1735 return metrics ;1741 return metrics.release(); 1736 1742 } 1737 1743
Note: See TracChangeset
for help on using the changeset viewer.