Use gtk_widget_get_preferred_size instead of deprecated gtk_widget_get_requisition
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jun 2013 10:59:39 +0000 (10:59 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Jun 2013 10:59:39 +0000 (10:59 +0000)
https://bugs.webkit.org/show_bug.cgi?id=118177

Patch by Iago Toral Quiroga <itoral@igalia.com> on 2013-06-28
Reviewed by Carlos Garcia Campos.

* WebCoreSupport/ChromeClientGtk.cpp:
(WebKit::ChromeClient::contentsSizeChanged):

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

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

index f71e3be..9b8ced0 100644 (file)
@@ -1,3 +1,13 @@
+2013-06-28  Iago Toral Quiroga  <itoral@igalia.com>
+
+        Use gtk_widget_get_preferred_size instead of deprecated gtk_widget_get_requisition
+        https://bugs.webkit.org/show_bug.cgi?id=118177
+
+        Reviewed by Carlos Garcia Campos.
+
+        * WebCoreSupport/ChromeClientGtk.cpp:
+        (WebKit::ChromeClient::contentsSizeChanged):
+
 2013-06-27  Iago Toral Quiroga  <itoral@igalia.com>
 
         Use consistent file names for WidgetBackingStoreGtkX11 class
index 33f8082..ae29543 100644 (file)
@@ -746,7 +746,7 @@ void ChromeClient::contentsSizeChanged(Frame* frame, const IntSize& size) const
     // otherwise we get into an infinite loop!
     GtkWidget* widget = GTK_WIDGET(m_webView);
     GtkRequisition requisition;
-    gtk_widget_get_requisition(widget, &requisition);
+    gtk_widget_get_preferred_size(widget, &requisition, 0);
     if (gtk_widget_get_realized(widget)
         && (requisition.height != size.height()
         || requisition.width != size.width()))