[GTK] [2.28.0] The Yelp build crashes if DISPLAY is not set
https://bugs.webkit.org/show_bug.cgi?id=209431

Reviewed by Carlos Alberto Lopez Perez.

Remove the assert when display is not X11 nor Wayland, and simply return false to ensure acceleration is not used.

* UIProcess/gtk/AcceleratedBackingStore.cpp:
(WebKit::AcceleratedBackingStore::checkRequirements):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@259380 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebKit/ChangeLog b/Source/WebKit/ChangeLog
index cd21430..69932d1 100644
--- a/Source/WebKit/ChangeLog
+++ b/Source/WebKit/ChangeLog
@@ -1,3 +1,15 @@
+2020-04-02  Carlos Garcia Campos  <cgarcia@igalia.com>
+
+        [GTK] [2.28.0] The Yelp build crashes if DISPLAY is not set
+        https://bugs.webkit.org/show_bug.cgi?id=209431
+
+        Reviewed by Carlos Alberto Lopez Perez.
+
+        Remove the assert when display is not X11 nor Wayland, and simply return false to ensure acceleration is not used.
+
+        * UIProcess/gtk/AcceleratedBackingStore.cpp:
+        (WebKit::AcceleratedBackingStore::checkRequirements):
+
 2020-04-01  Per Arne Vollan  <pvollan@apple.com>
 
         [Cocoa] UTI from MIME type cache can be removed after r258915
diff --git a/Source/WebKit/UIProcess/gtk/AcceleratedBackingStore.cpp b/Source/WebKit/UIProcess/gtk/AcceleratedBackingStore.cpp
index 3909aa4..d14ddd9 100644
--- a/Source/WebKit/UIProcess/gtk/AcceleratedBackingStore.cpp
+++ b/Source/WebKit/UIProcess/gtk/AcceleratedBackingStore.cpp
@@ -53,7 +53,6 @@
         return AcceleratedBackingStoreX11::checkRequirements();
 #endif
 
-    RELEASE_ASSERT_NOT_REACHED();
     return false;
 }