Another attempt to fix the Qt build, no review.

        * platform/graphics/qt/ImageQt.cpp:
        * platform/graphics/qt/StillImageQt.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35737 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/platform/graphics/qt/ImageQt.cpp b/WebCore/platform/graphics/qt/ImageQt.cpp
index 6e9843b..27ab0ad 100644
--- a/WebCore/platform/graphics/qt/ImageQt.cpp
+++ b/WebCore/platform/graphics/qt/ImageQt.cpp
@@ -84,9 +84,9 @@
 // Image Class
 // ================================================
 
-Image* Image::loadPlatformResource(const char* name)
+PassRefPtr<Image> Image::loadPlatformResource(const char* name)
 {
-    return new StillImage(loadResourcePixmap(name));
+    return StillImage::create(loadResourcePixmap(name));
 }
 
     
diff --git a/WebCore/platform/graphics/qt/StillImageQt.h b/WebCore/platform/graphics/qt/StillImageQt.h
index 54cf2a9..2f69588 100644
--- a/WebCore/platform/graphics/qt/StillImageQt.h
+++ b/WebCore/platform/graphics/qt/StillImageQt.h
@@ -34,7 +34,7 @@
 
     class StillImage : public Image {
     public:
-        static create(const QPixmap& pixmap)
+        static PassRefPtr<StillImage> create(const QPixmap& pixmap)
         {
             return adoptRef(new StillImage(pixmap));
         }