[GTK] Use PassOwnPtr for the returned value of createBackingStore
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Jul 2013 08:44:06 +0000 (08:44 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Jul 2013 08:44:06 +0000 (08:44 +0000)
https://bugs.webkit.org/show_bug.cgi?id=118230

Patch by ChangSeok Oh <changseok.oh@collabora.com> on 2013-07-01
Reviewed by Andreas Kling.

It would be better that createBackingStore returns PassOwnPtr instread of OwnPtr
to keep compatibility with c++0x.

* WebCoreSupport/ChromeClientGtk.cpp:
(WebKit::createBackingStore):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@152216 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/gtk/ChangeLog
Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp

index 9b8ced0..de5dba7 100644 (file)
@@ -1,3 +1,16 @@
+2013-07-01  ChangSeok Oh  <changseok.oh@collabora.com>
+
+        [GTK] Use PassOwnPtr for the returned value of createBackingStore
+        https://bugs.webkit.org/show_bug.cgi?id=118230
+
+        Reviewed by Andreas Kling.
+
+        It would be better that createBackingStore returns PassOwnPtr instread of OwnPtr
+        to keep compatibility with c++0x.
+
+        * WebCoreSupport/ChromeClientGtk.cpp:
+        (WebKit::createBackingStore):
+
 2013-06-28  Iago Toral Quiroga  <itoral@igalia.com>
 
         Use gtk_widget_get_preferred_size instead of deprecated gtk_widget_get_requisition
index ae29543..8332633 100644 (file)
@@ -104,7 +104,7 @@ using namespace WebCore;
 
 namespace WebKit {
 
-static OwnPtr<WidgetBackingStore> createBackingStore(GtkWidget* widget, const IntSize& size)
+static PassOwnPtr<WidgetBackingStore> createBackingStore(GtkWidget* widget, const IntSize& size)
 {
 #ifdef GDK_WINDOWING_X11
     GdkDisplay* display = gdk_display_manager_get_default_display(gdk_display_manager_get());