Commit 9c61d803 authored by oliver@apple.com's avatar oliver@apple.com

Return behaviour for 0 sized pattern back to what it was prior to r27704

Reviewed by Darin and Antti.

This change in behaviour broke two layout tests in DRT, so correcting it
corrects existing tests.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27732 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 8af3894b
2007-11-12 Oliver Hunt <oliver@apple.com>
Reviewed by Darin and Antti.
Return behaviour for 0 sized pattern back to what it was prior to r27704
This change in behaviour broke two layout tests in DRT, so correcting it
corrects existing tests.
* platform/graphics/cg/ImageBufferCG.cpp:
2007-11-12 Timothy Hatcher <timothy@apple.com>
Reviewed by John.
......
......@@ -37,7 +37,7 @@ namespace WebCore {
auto_ptr<ImageBuffer> ImageBuffer::create(const IntSize& size, bool grayScale)
{
if (size.width() <= 0 || size.height() <= 0)
if (size.width() < 0 || size.height() < 0)
return auto_ptr<ImageBuffer>();
unsigned int bytesPerRow = size.width();
if (!grayScale) {
......
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