[Webkit-unassigned] [Bug 226320] [GTK] Try harder to find initial WebKitWebView size

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 27 10:23:39 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=226320

--- Comment #7 from Carlos Garcia Campos <cgarcia at igalia.com> ---
Comment on attachment 429860
  --> https://bugs.webkit.org/attachment.cgi?id=429860
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=429860&action=review

> Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp:2373
> +{
> +#if USE(GTK4)
> +    int width = gtk_widget_get_width(GTK_WIDGET(webViewBase));
> +    int height = gtk_widget_get_height(GTK_WIDGET(webViewBase));
> +#else
> +    int width = gtk_widget_get_allocated_width(GTK_WIDGET(webViewBase));
> +    int height = gtk_widget_get_allocated_height(GTK_WIDGET(webViewBase));
> +#endif

I think we could add gtk_widget_get_width/height to GtkVersioning for gtk3 that returns allocated width/height. Assuming we always want the allocated size in gtk3 when width/height is queried in gtk4

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210527/02d5136f/attachment-0001.htm>


More information about the webkit-unassigned mailing list