[GTK] Accessing default web context before gtk_init results in drawing failure (Gtk...
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Nov 2018 14:18:37 +0000 (14:18 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Nov 2018 14:18:37 +0000 (14:18 +0000)
commit8545fb34842b62b1e666c183980f340df643bf92
treec922f86cb398ec0d9dd690f35255d84ae305481f
parent9584d1b95cc3ecfa2b3d13cf9e9c4f6a9deb06c7
[GTK] Accessing default web context before gtk_init results in drawing failure (Gtk-WARNING **: drawing failure for widget 'WebKitWebView': invalid value for an input Visual*)
https://bugs.webkit.org/show_bug.cgi?id=150303

Reviewed by Michael Catanzaro.

Ensure gtk has been initialized before trying to get the default display.

* platform/graphics/PlatformDisplay.cpp:
(WebCore::PlatformDisplay::createPlatformDisplay):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/PlatformDisplay.cpp