Title: [242042] trunk/Source/WebKit
- Revision
- 242042
- Author
- [email protected]
- Date
- 2019-02-25 08:10:31 -0800 (Mon, 25 Feb 2019)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (242041 => 242042)
--- trunk/Source/WebKit/ChangeLog 2019-02-25 15:50:23 UTC (rev 242041)
+++ trunk/Source/WebKit/ChangeLog 2019-02-25 16:10:31 UTC (rev 242042)
@@ -1,3 +1,22 @@
+2019-02-25 Michael Catanzaro <[email protected]>
+
+ [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):
+
2019-02-24 Zalan Bujtas <[email protected]>
Introduce ContentChangeObserver class
Modified: trunk/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp (242041 => 242042)
--- trunk/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp 2019-02-25 15:50:23 UTC (rev 242041)
+++ trunk/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp 2019-02-25 16:10:31 UTC (rev 242042)
@@ -73,6 +73,12 @@
void WebProcessPool::platformInitialize()
{
+#if PLATFORM(GTK)
+ m_alwaysUsesComplexTextCodePath = true;
+#endif
+ if (const char* forceComplexText = getenv("WEBKIT_FORCE_COMPLEX_TEXT"))
+ m_alwaysUsesComplexTextCodePath = !strcmp(forceComplexText, "1");
+
#if ENABLE(REMOTE_INSPECTOR)
if (const char* address = g_getenv("WEBKIT_INSPECTOR_SERVER"))
initializeRemoteInspectorServer(address);
@@ -94,14 +100,6 @@
parameters.memoryCacheDisabled = m_memoryCacheDisabled || cacheModel() == CacheModel::DocumentViewer;
parameters.proxySettings = m_networkProxySettings;
-#if PLATFORM(GTK)
- // This is misnamed. It can only be used to disable complex text.
- parameters.shouldAlwaysUseComplexTextCodePath = true;
- const char* forceComplexText = getenv("WEBKIT_FORCE_COMPLEX_TEXT");
- if (forceComplexText && !strcmp(forceComplexText, "0"))
- parameters.shouldAlwaysUseComplexTextCodePath = m_alwaysUsesComplexTextCodePath;
-#endif
-
if (memoryPressureMonitorDisabled())
parameters.shouldSuppressMemoryPressureHandler = true;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes