Title: [212404] trunk/Source/WebKit2
Revision
212404
Author
[email protected]
Date
2017-02-15 15:37:41 -0800 (Wed, 15 Feb 2017)

Log Message

Clean up WebProcessCreationParameters a little
https://bugs.webkit.org/show_bug.cgi?id=168349

Reviewed by Alex Christensen.

Initialize the data members better, and rearrange to group the types in a slightly more space-efficient manner.

* Shared/WebProcessCreationParameters.cpp:
(WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
* Shared/WebProcessCreationParameters.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (212403 => 212404)


--- trunk/Source/WebKit2/ChangeLog	2017-02-15 23:32:35 UTC (rev 212403)
+++ trunk/Source/WebKit2/ChangeLog	2017-02-15 23:37:41 UTC (rev 212404)
@@ -1,3 +1,16 @@
+2017-02-15  Simon Fraser  <[email protected]>
+
+        Clean up WebProcessCreationParameters a little
+        https://bugs.webkit.org/show_bug.cgi?id=168349
+
+        Reviewed by Alex Christensen.
+
+        Initialize the data members better, and rearrange to group the types in a slightly more space-efficient manner.
+
+        * Shared/WebProcessCreationParameters.cpp:
+        (WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
+        * Shared/WebProcessCreationParameters.h:
+
 2017-02-15  Jer Noble  <[email protected]>
 
         REGRESSION(r183937): Fullscreen Exit animation missing mask

Modified: trunk/Source/WebKit2/Shared/WebProcessCreationParameters.cpp (212403 => 212404)


--- trunk/Source/WebKit2/Shared/WebProcessCreationParameters.cpp	2017-02-15 23:32:35 UTC (rev 212403)
+++ trunk/Source/WebKit2/Shared/WebProcessCreationParameters.cpp	2017-02-15 23:37:41 UTC (rev 212404)
@@ -35,20 +35,6 @@
 namespace WebKit {
 
 WebProcessCreationParameters::WebProcessCreationParameters()
-    : shouldAlwaysUseComplexTextCodePath(false)
-    , shouldEnableMemoryPressureReliefLogging(false)
-    , shouldUseFontSmoothing(true)
-    , defaultRequestTimeoutInterval(INT_MAX)
-#if PLATFORM(COCOA)
-    , shouldEnableJIT(false)
-    , shouldEnableFTLJIT(false)
-#endif
-    , memoryCacheDisabled(false)
-#if ENABLE(SERVICE_CONTROLS)
-    , hasImageServices(false)
-    , hasSelectionServices(false)
-    , hasRichContentServices(false)
-#endif
 {
 }
 

Modified: trunk/Source/WebKit2/Shared/WebProcessCreationParameters.h (212403 => 212404)


--- trunk/Source/WebKit2/Shared/WebProcessCreationParameters.h	2017-02-15 23:32:35 UTC (rev 212403)
+++ trunk/Source/WebKit2/Shared/WebProcessCreationParameters.h	2017-02-15 23:37:41 UTC (rev 212404)
@@ -89,8 +89,6 @@
 #endif
     String mediaKeyStorageDirectory;
 
-    bool shouldUseTestingNetworkSession;
-
     Vector<String> urlSchemesRegisteredAsEmptyDocument;
     Vector<String> urlSchemesRegisteredAsSecure;
     Vector<String> urlSchemesRegisteredAsBypassingContentSecurityPolicy;
@@ -102,48 +100,51 @@
     Vector<String> urlSchemesRegisteredAsAlwaysRevalidated;
     Vector<String> urlSchemesRegisteredAsCachePartitioned;
 
+    Vector<String> fontWhitelist;
+    Vector<String> languages;
+
     CacheModel cacheModel;
 
-    bool shouldAlwaysUseComplexTextCodePath;
-    bool shouldEnableMemoryPressureReliefLogging;
+    double defaultRequestTimeoutInterval { INT_MAX };
+
+    bool shouldUseTestingNetworkSession { false };
+    bool shouldAlwaysUseComplexTextCodePath { false };
+    bool shouldEnableMemoryPressureReliefLogging { false };
     bool shouldSuppressMemoryPressureHandler { false };
-    bool shouldUseFontSmoothing;
+    bool shouldUseFontSmoothing { true };
     bool resourceLoadStatisticsEnabled { false };
     bool urlParserEnabled { false };
+    bool iconDatabaseEnabled { false };
+    bool fullKeyboardAccessEnabled { false };
+    bool memoryCacheDisabled { false };
 
-    Vector<String> fontWhitelist;
+#if ENABLE(SERVICE_CONTROLS)
+    bool hasImageServices { false };
+    bool hasSelectionServices { false };
+    bool hasRichContentServices { false };
+#endif
 
-    bool iconDatabaseEnabled;
+    double terminationTimeout { 0 };
 
-    double terminationTimeout;
-
-    Vector<String> languages;
-
     TextCheckerState textCheckerState;
 
-    bool fullKeyboardAccessEnabled;
-
-    double defaultRequestTimeoutInterval;
-
 #if PLATFORM(COCOA) || USE(CFURLCONNECTION)
     String uiProcessBundleIdentifier;
 #endif
 
 #if PLATFORM(COCOA)
-    pid_t presenterApplicationPid;
+    pid_t presenterApplicationPid { 0 };
 
-    bool accessibilityEnhancedUserInterfaceEnabled;
-
     WebCore::MachSendRight acceleratedCompositingPort;
 
     String uiProcessBundleResourcePath;
     SandboxExtension::Handle uiProcessBundleResourcePathExtensionHandle;
 
-    bool shouldEnableJIT;
-    bool shouldEnableFTLJIT;
+    bool shouldEnableJIT { false };
+    bool shouldEnableFTLJIT { false };
+    bool accessibilityEnhancedUserInterfaceEnabled { false };
     
     RefPtr<API::Data> bundleParameterData;
-
 #endif // PLATFORM(COCOA)
 
 #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
@@ -153,14 +154,6 @@
     HashMap<WebCore::SessionID, HashMap<unsigned, double>> plugInAutoStartOriginHashes;
     Vector<String> plugInAutoStartOrigins;
 
-    bool memoryCacheDisabled;
-
-#if ENABLE(SERVICE_CONTROLS)
-    bool hasImageServices;
-    bool hasSelectionServices;
-    bool hasRichContentServices;
-#endif
-
 #if ENABLE(NETSCAPE_PLUGIN_API)
     HashMap<String, HashMap<String, HashMap<String, uint8_t>>> pluginLoadClientPolicies;
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to