Changeset 260750 in webkit


Ignore:
Timestamp:
Apr 27, 2020 4:52:10 AM (4 years ago)
Author:
berto@igalia.com
Message:

[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 Garcia Campos.

Don't create a PlatformDisplayLibWPE as a fallback when using
Wayland or X11.

  • platform/graphics/PlatformDisplay.cpp:

(WebCore::PlatformDisplay::createPlatformDisplay):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r260749 r260750  
     12020-04-27  Alberto Garcia  <berto@igalia.com>
     2
     3        [GTK] [2.28.0] The Yelp build crashes if DISPLAY is not set
     4        https://bugs.webkit.org/show_bug.cgi?id=209431
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Don't create a PlatformDisplayLibWPE as a fallback when using
     9        Wayland or X11.
     10
     11        * platform/graphics/PlatformDisplay.cpp:
     12        (WebCore::PlatformDisplay::createPlatformDisplay):
     13
    1142020-04-27  Claudio Saavedra  <csaavedra@igalia.com>
    215
  • trunk/Source/WebCore/platform/graphics/PlatformDisplay.cpp

    r260418 r260750  
    9999#endif // PLATFORM(GTK)
    100100
     101#if PLATFORM(WAYLAND)
     102    if (auto platformDisplay = PlatformDisplayWayland::create())
     103        return platformDisplay;
     104#endif
     105
     106#if PLATFORM(X11)
     107    if (auto platformDisplay = PlatformDisplayX11::create())
     108        return platformDisplay;
     109#endif
     110
     111    // If at this point we still don't have a display, just create a fake display with no native.
     112#if PLATFORM(WAYLAND)
     113    return PlatformDisplayWayland::create(nullptr);
     114#elif PLATFORM(X11)
     115    return PlatformDisplayX11::create(nullptr);
     116#endif
     117
    101118#if USE(WPE_RENDERER)
    102119    return PlatformDisplayLibWPE::create();
    103120#elif PLATFORM(WIN)
    104121    return PlatformDisplayWin::create();
    105 #endif
    106 
    107 #if PLATFORM(WAYLAND)
    108     if (auto platformDisplay = PlatformDisplayWayland::create())
    109         return platformDisplay;
    110 #endif
    111 
    112 #if PLATFORM(X11)
    113     if (auto platformDisplay = PlatformDisplayX11::create())
    114         return platformDisplay;
    115 #endif
    116 
    117     // If at this point we still don't have a display, just create a fake display with no native.
    118 #if PLATFORM(WAYLAND)
    119     return PlatformDisplayWayland::create(nullptr);
    120 #elif PLATFORM(X11)
    121     return PlatformDisplayX11::create(nullptr);
    122122#endif
    123123
Note: See TracChangeset for help on using the changeset viewer.