Commit 7babd229 authored by oliver@apple.com's avatar oliver@apple.com

Correct incorrect assertion

Reviewed by Mark Rowe


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1087325e
2008-03-03 Oliver Hunt <oliver@apple.com>
Reviewed by Mark Rowe.
Test case for incorrect assertions
* fast/canvas/canvas-putImageData.js:
2008-03-02 Kevin Ollivier <kevino@theolliviers.com>
Reviewed by Dave Hyatt.
......@@ -221,4 +221,17 @@ shouldThrow("context.putImageData(buffer, 0, 0, 0, undefined, 0, 0)", "'Error: I
shouldThrow("context.putImageData(buffer, 0, 0, 0, 0, undefined, 0)", "'Error: INDEX_SIZE_ERR: DOM Exception 1'");
shouldThrow("context.putImageData(buffer, 0, 0, 0, 0, 0, undefined)", "'Error: INDEX_SIZE_ERR: DOM Exception 1'");
// Ensure we don't mess up bounds clipping checks
var rectcanvas = document.createElement("canvas");
rectcanvas.width = 20;
rectcanvas.height = 10;
var rectbuffer = rectcanvas.getContext("2d");
rectbuffer.putImageData(smallbuffer, 10, 0);
var rectcanvas = document.createElement("canvas");
rectcanvas.width = 10;
rectcanvas.height = 20;
var rectbuffer = rectcanvas.getContext("2d");
rectbuffer.putImageData(smallbuffer, 0, 10);
var successfullyParsed = true;
2008-03-03 Oliver Hunt <oliver@apple.com>
Reviewed by Mark Rowe.
Correct incorrect assertion
* platform/graphics/cg/ImageBufferCG.cpp:
(WebCore::ImageBuffer::putImageData):
2008-03-02 Alp Toker <alp@atoker.com>
Another fix for non-database builds after changes in r30331.
......@@ -182,7 +182,7 @@ void ImageBuffer::putImageData(ImageData* source, const IntRect& sourceRect, con
ASSERT(originy <= sourceRect.bottom());
int endy = destPoint.y() + sourceRect.bottom();
ASSERT(endx <= m_size.height());
ASSERT(endy <= m_size.height());
int numRows = endy - desty;
unsigned srcBytesPerRow = 4 * source->width();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment