Reviewed by Darin and Antti.
This change in behaviour broke two layout tests in DRT, so correcting it
corrects existing tests.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27732
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+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.
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) {