Changeset 242042 in webkit


Ignore:
Timestamp:
Feb 25, 2019 8:10:31 AM (5 years ago)
Author:
Michael Catanzaro
Message:

[WPE][GTK] Clean up handling of WEBKIT_FORCE_COMPLEX_TEXT
https://bugs.webkit.org/show_bug.cgi?id=194614

Reviewed by Carlos Garcia Campos.

This environment variable is now enabled for WPE, not just for GTK.

It is now possible to use this environment variable to enable complex text, not just to
disable it.

WebProcessPool::setAlwaysUsesComplexTextCodePath is fixed to be respected even when this
environment variable is set, although WPE and GTK will never do so.

  • UIProcess/glib/WebProcessPoolGLib.cpp:

(WebKit::WebProcessPool::platformInitialize):
(WebKit::WebProcessPool::platformInitializeWebProcess):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r242032 r242042  
     12019-02-25  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [WPE][GTK] Clean up handling of WEBKIT_FORCE_COMPLEX_TEXT
     4        https://bugs.webkit.org/show_bug.cgi?id=194614
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        This environment variable is now enabled for WPE, not just for GTK.
     9
     10        It is now possible to use this environment variable to enable complex text, not just to
     11        disable it.
     12
     13        WebProcessPool::setAlwaysUsesComplexTextCodePath is fixed to be respected even when this
     14        environment variable is set, although WPE and GTK will never do so.
     15
     16        * UIProcess/glib/WebProcessPoolGLib.cpp:
     17        (WebKit::WebProcessPool::platformInitialize):
     18        (WebKit::WebProcessPool::platformInitializeWebProcess):
     19
    1202019-02-24  Zalan Bujtas  <zalan@apple.com>
    221
  • trunk/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp

    r242012 r242042  
    7474void WebProcessPool::platformInitialize()
    7575{
     76#if PLATFORM(GTK)
     77    m_alwaysUsesComplexTextCodePath = true;
     78#endif
     79    if (const char* forceComplexText = getenv("WEBKIT_FORCE_COMPLEX_TEXT"))
     80        m_alwaysUsesComplexTextCodePath = !strcmp(forceComplexText, "1");
     81
    7682#if ENABLE(REMOTE_INSPECTOR)
    7783    if (const char* address = g_getenv("WEBKIT_INSPECTOR_SERVER"))
     
    95101    parameters.proxySettings = m_networkProxySettings;
    96102
    97 #if PLATFORM(GTK)
    98     // This is misnamed. It can only be used to disable complex text.
    99     parameters.shouldAlwaysUseComplexTextCodePath = true;
    100     const char* forceComplexText = getenv("WEBKIT_FORCE_COMPLEX_TEXT");
    101     if (forceComplexText && !strcmp(forceComplexText, "0"))
    102         parameters.shouldAlwaysUseComplexTextCodePath = m_alwaysUsesComplexTextCodePath;
    103 #endif
    104 
    105103    if (memoryPressureMonitorDisabled())
    106104        parameters.shouldSuppressMemoryPressureHandler = true;
Note: See TracChangeset for help on using the changeset viewer.