static void webViewSizeAllocate(GtkWidget* widget, GtkAllocation* allocation) { WebView* webView = webViewWidgetGetWebViewInstance(WEB_VIEW_WIDGET(widget)); GTK_WIDGET_CLASS(webViewWidgetParentClass)->size_allocate(widget, allocation); webView->setSize(widget, IntSize(allocation->width, allocation->height)); }