2011-04-26  Adam Barth  <abarth@webkit.org>

        Reviewed by David Levin.

        Fix more strict OwnPtr violations in WebCore
        https://bugs.webkit.org/show_bug.cgi?id=59433

        These manifest in the Chromium build.

        * bindings/v8/ScriptController.cpp:
        (WebCore::ScriptController::ScriptController):
        * bindings/v8/ScriptDebugServer.cpp:
        (WebCore::ScriptDebugServer::editScriptSource):
        * bindings/v8/V8DOMMap.cpp:
        (WebCore::DOMDataStoreHandle::DOMDataStoreHandle):
        * bindings/v8/V8Proxy.cpp:
        (WebCore::V8Proxy::precompileScript):
        * bindings/v8/WorkerScriptController.cpp:
        (WebCore::WorkerScriptController::WorkerScriptController):
        * page/Page.cpp:
        (WebCore::Page::Page):
        (WebCore::Page::speechInput):
        * platform/PlatformGestureRecognizer.cpp:
        (WebCore::PlatformGestureRecognizer::create):
        * platform/PlatformGestureRecognizer.h:
        * platform/graphics/chromium/DrawingBufferChromium.cpp:
        (WebCore::DrawingBuffer::DrawingBuffer):
        * platform/graphics/chromium/cc/CCLayerImpl.cpp:
        (WebCore::CCLayerImpl::CCLayerImpl):
        * platform/graphics/gpu/Texture.cpp:
        (WebCore::Texture::create):
        * platform/image-decoders/bmp/BMPImageDecoder.cpp:
        (WebCore::BMPImageDecoder::decodeHelper):
        * platform/image-decoders/gif/GIFImageDecoder.cpp:
        (WebCore::GIFImageDecoder::decode):
        * platform/image-decoders/ico/ICOImageDecoder.cpp:
        (WebCore::ICOImageDecoder::decodeAtIndex):
        * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
        (WebCore::JPEGImageDecoder::decode):
        * platform/image-decoders/png/PNGImageDecoder.cpp:
        (WebCore::PNGImageDecoder::decode):
        * storage/chromium/DatabaseTrackerChromium.cpp:
        (WebCore::DatabaseTracker::addOpenDatabase):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84890 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/platform/PlatformGestureRecognizer.cpp b/Source/WebCore/platform/PlatformGestureRecognizer.cpp
index 38fc3fe..d9e5579 100644
--- a/Source/WebCore/platform/PlatformGestureRecognizer.cpp
+++ b/Source/WebCore/platform/PlatformGestureRecognizer.cpp
@@ -38,9 +38,9 @@
 
 // To get a useful GestureRecognizer, a specific platform should return something
 // here that meets its needs. EventHandler will ignore null GestureRecognizers.
-PlatformGestureRecognizer* PlatformGestureRecognizer::create()
+PassOwnPtr<PlatformGestureRecognizer> PlatformGestureRecognizer::create()
 {
-    return 0;
+    return PassOwnPtr<PlatformGestureRecognizer>();
 }
 
 } // namespace WebCore