-
commit-queue@webkit.org authored
rect out of bounds https://bugs.webkit.org/show_bug.cgi?id=65709 Patch by Justin Novosad <junov@chromium.org> on 2011-09-23 Reviewed by Oliver Hunt. * html/canvas/CanvasRenderingContext2D.cpp: (WebCore::CanvasRenderingContext2D::drawImage): Return early without throwing an exception if source rectangle is out of bounds to match the spec. LayoutTests: Unwarranted DOM Exception when canvas2D drawImage is called with src rect is out of bounds https://bugs.webkit.org/show_bug.cgi?id=65709 Patch by Justin Novosad <junov@chromium.org> on 2011-09-23 Reviewed by Oliver Hunt. * fast/canvas/drawImage-with-invalid-args-expected.txt: * fast/canvas/drawImage-with-invalid-args.html: This test covers (among other things) cases where the source rectangle is _completely_ outside the bounds of the source image. It was modified to no longer expect DOM exceptions * platform/chromium/test_expectations.txt: Out-dated test canvas/philip/tests/2d.drawImage.outsidesource.html is now expected to fail * platform/mac/Skipped: Skipping canvas/philip/tests/2d.drawImage.outsidesource.html git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95899 268f45cc-cd09-0410-ab3c-d52691b4dbfc
c60e76cc