Return behaviour for 0 sized pattern back to what it was prior to r27704
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Nov 2007 23:53:19 +0000 (23:53 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Nov 2007 23:53:19 +0000 (23:53 +0000)
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

WebCore/ChangeLog
WebCore/platform/graphics/cg/ImageBufferCG.cpp

index 4b13ba1..3514c23 100644 (file)
@@ -1,3 +1,14 @@
+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.
index 34fe6cd..2d1ac01 100644 (file)
@@ -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) {