Title: [292265] trunk/Source/WebKit
- Revision
- 292265
- Author
- yu...@chromium.org
- Date
- 2022-04-02 08:59:07 -0700 (Sat, 02 Apr 2022)
Log Message
GTK doesn't compile with ENABLE_ACCESSIBILITY=0
https://bugs.webkit.org/show_bug.cgi?id=238669
Reviewed by Michael Catanzaro.
Fix GTK compilation with ENABLE_ACCESSIBILITY=0
No new tests.
* UIProcess/API/gtk/WebKitWebViewBase.cpp:
(webkitWebViewBaseDispose):
(webkit_web_view_base_class_init):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (292264 => 292265)
--- trunk/Source/WebKit/ChangeLog 2022-04-02 13:35:04 UTC (rev 292264)
+++ trunk/Source/WebKit/ChangeLog 2022-04-02 15:59:07 UTC (rev 292265)
@@ -1,3 +1,18 @@
+2022-04-02 Yury Semikhatsky <yu...@chromium.org>
+
+ GTK doesn't compile with ENABLE_ACCESSIBILITY=0
+ https://bugs.webkit.org/show_bug.cgi?id=238669
+
+ Reviewed by Michael Catanzaro.
+
+ Fix GTK compilation with ENABLE_ACCESSIBILITY=0
+
+ No new tests.
+
+ * UIProcess/API/gtk/WebKitWebViewBase.cpp:
+ (webkitWebViewBaseDispose):
+ (webkit_web_view_base_class_init):
+
2022-04-02 Andres Gonzalez <andresg...@apple.com>
Expose AXObjectCache::treeData to the UI process.
Modified: trunk/Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp (292264 => 292265)
--- trunk/Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp 2022-04-02 13:35:04 UTC (rev 292264)
+++ trunk/Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp 2022-04-02 15:59:07 UTC (rev 292265)
@@ -700,8 +700,10 @@
#else
g_clear_pointer(&webView->priv->dialog, gtk_widget_destroy);
webkitWebViewBaseSetToplevelOnScreenWindow(webView, nullptr);
+#if ENABLE(ACCESSIBILITY)
if (webView->priv->accessible)
webkitWebViewAccessibleSetWebView(WEBKIT_WEB_VIEW_ACCESSIBLE(webView->priv->accessible.get()), nullptr);
+#endif // ENABLE(ACCESSIBILITY)
#endif
#if GTK_CHECK_VERSION(3, 24, 0)
webkitWebViewBaseCompleteEmojiChooserRequest(webView, emptyString());
@@ -1693,7 +1695,7 @@
return TRUE;
}
-#if !USE(GTK4)
+#if !USE(GTK4) && ENABLE(ACCESSIBILITY)
static AtkObject* webkitWebViewBaseGetAccessible(GtkWidget* widget)
{
WebKitWebViewBasePrivate* priv = WEBKIT_WEB_VIEW_BASE(widget)->priv;
@@ -2227,7 +2229,7 @@
widgetClass->touch_event = webkitWebViewBaseTouchEvent;
#endif
widgetClass->query_tooltip = webkitWebViewBaseQueryTooltip;
-#if !USE(GTK4)
+#if !USE(GTK4) && ENABLE(ACCESSIBILITY)
widgetClass->get_accessible = webkitWebViewBaseGetAccessible;
#endif
#if USE(GTK4)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes