Diff
Modified: branches/safari-609.1.13-branch/Source/WebCore/ChangeLog (253772 => 253773)
--- branches/safari-609.1.13-branch/Source/WebCore/ChangeLog 2019-12-19 19:24:01 UTC (rev 253772)
+++ branches/safari-609.1.13-branch/Source/WebCore/ChangeLog 2019-12-19 19:27:15 UTC (rev 253773)
@@ -1,3 +1,7 @@
+2019-12-19 Alan Coon <alanc...@apple.com>
+
+ Revert r253530. rdar://problem/58070303
+
2019-12-18 Alan Coon <alanc...@apple.com>
Revert r253493. rdar://problem/58028534
Modified: branches/safari-609.1.13-branch/Source/WebCore/WebCore.xcodeproj/project.pbxproj (253772 => 253773)
--- branches/safari-609.1.13-branch/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2019-12-19 19:24:01 UTC (rev 253772)
+++ branches/safari-609.1.13-branch/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2019-12-19 19:27:15 UTC (rev 253773)
@@ -4794,7 +4794,6 @@
E3B2F0ED1D7F4CA300B0C9D1 /* LoadableScript.h in Headers */ = {isa = PBXBuildFile; fileRef = E3B2F0E71D7F35EC00B0C9D1 /* LoadableScript.h */; settings = {ATTRIBUTES = (Private, ); }; };
E3B2F0EE1D7F4CA900B0C9D1 /* LoadableScriptClient.h in Headers */ = {isa = PBXBuildFile; fileRef = E3B2F0E81D7F35EC00B0C9D1 /* LoadableScriptClient.h */; settings = {ATTRIBUTES = (Private, ); }; };
E3B2F0F01D7F4CB500B0C9D1 /* LoadableClassicScript.h in Headers */ = {isa = PBXBuildFile; fileRef = E3B2F0E41D7F35EC00B0C9D1 /* LoadableClassicScript.h */; settings = {ATTRIBUTES = (Private, ); }; };
- E3BBC24723835526006EC39F /* CSSValueKey.h in Headers */ = {isa = PBXBuildFile; fileRef = E3BBC2452383551A006EC39F /* CSSValueKey.h */; settings = {ATTRIBUTES = (Private, ); }; };
E3C99A091DC3D41C00794AD3 /* DOMJITCheckDOM.h in Headers */ = {isa = PBXBuildFile; fileRef = E3C99A081DC3D41700794AD3 /* DOMJITCheckDOM.h */; };
E3C9AECB2113149900419B92 /* JSMicrotaskCallback.h in Headers */ = {isa = PBXBuildFile; fileRef = E3C9AEC92113147400419B92 /* JSMicrotaskCallback.h */; };
E3E4E2A81E3B17100023BB8A /* ScriptElementCachedScriptFetcher.h in Headers */ = {isa = PBXBuildFile; fileRef = E3E4E2A61E3B16FC0023BB8A /* ScriptElementCachedScriptFetcher.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -15128,7 +15127,6 @@
E3B2F0E81D7F35EC00B0C9D1 /* LoadableScriptClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LoadableScriptClient.h; sourceTree = "<group>"; };
E3B2F0E91D7F3D3C00B0C9D1 /* LoadableScript.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LoadableScript.cpp; sourceTree = "<group>"; };
E3B7C0621DC3415A001FB0B8 /* JSDocumentDOMJIT.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDocumentDOMJIT.cpp; sourceTree = "<group>"; };
- E3BBC2452383551A006EC39F /* CSSValueKey.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSSValueKey.h; sourceTree = "<group>"; };
E3BC827322530221005276DE /* NodeList.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = NodeList.cpp; sourceTree = "<group>"; };
E3BF19E122AF2F55009C9926 /* XMLHttpRequestProgressEvent.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = XMLHttpRequestProgressEvent.cpp; sourceTree = "<group>"; };
E3BF19E322AF2FA5009C9926 /* OverconstrainedErrorEvent.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = OverconstrainedErrorEvent.cpp; sourceTree = "<group>"; };
@@ -27650,7 +27648,6 @@
9392F14B0AD1861B00691BD4 /* CounterNode.h */,
0F53FB81213B1BB800C40D34 /* CSSFilter.cpp */,
0F53FB83213B1BB800C40D34 /* CSSFilter.h */,
- E3BBC2452383551A006EC39F /* CSSValueKey.h */,
A8CFF6CA0A1561CD000A4234 /* EllipsisBox.cpp */,
A8CFF6BD0A156118000A4234 /* EllipsisBox.h */,
E4A8D21522578DA000A8463C /* EventRegion.cpp */,
@@ -29531,7 +29528,6 @@
DD7CDF250A23CF9800069928 /* CSSUnknownRule.h in Headers */,
BC7D8FF01BD03B6400FFE540 /* CSSUnsetValue.h in Headers */,
A80E6CEE0A1989CA007FB8C5 /* CSSValue.h in Headers */,
- E3BBC24723835526006EC39F /* CSSValueKey.h in Headers */,
6565815109D13043000E61D7 /* CSSValueKeywords.h in Headers */,
A80E6CE90A1989CA007FB8C5 /* CSSValueList.h in Headers */,
E49BD9FA131FD2ED003C56F0 /* CSSValuePool.h in Headers */,
Deleted: branches/safari-609.1.13-branch/Source/WebCore/rendering/CSSValueKey.h (253772 => 253773)
--- branches/safari-609.1.13-branch/Source/WebCore/rendering/CSSValueKey.h 2019-12-19 19:24:01 UTC (rev 253772)
+++ branches/safari-609.1.13-branch/Source/WebCore/rendering/CSSValueKey.h 2019-12-19 19:27:15 UTC (rev 253773)
@@ -1,100 +0,0 @@
-/*
- * Copyright (C) 2019 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#pragma once
-
-#include "CSSValueKeywords.h"
-
-namespace WebCore {
-
-struct CSSValueKey {
-
- unsigned hash() const;
-
- template<class Encoder> void encode(Encoder&) const;
- template<class Decoder> static Optional<CSSValueKey> decode(Decoder&);
-
- unsigned cssValueID;
- bool useDarkAppearance;
- bool useElevatedUserInterfaceLevel;
-};
-
-inline bool operator==(const CSSValueKey& a, const CSSValueKey& b)
-{
- return a.cssValueID == b.cssValueID && a.useDarkAppearance == b.useDarkAppearance && a.useElevatedUserInterfaceLevel == b.useElevatedUserInterfaceLevel;
-}
-
-template<class Encoder>
-void CSSValueKey::encode(Encoder& encoder) const
-{
- encoder << cssValueID;
- encoder << useDarkAppearance;
- encoder << useElevatedUserInterfaceLevel;
-}
-
-template<class Decoder>
-Optional<CSSValueKey> CSSValueKey::decode(Decoder& decoder)
-{
- Optional<unsigned> cssValueID;
- decoder >> cssValueID;
- if (!cssValueID)
- return WTF::nullopt;
- Optional<bool> useDarkAppearance;
- decoder >> useDarkAppearance;
- if (!useDarkAppearance)
- return WTF::nullopt;
- Optional<bool> useElevatedUserInterfaceLevel;
- decoder >> useElevatedUserInterfaceLevel;
- if (!useElevatedUserInterfaceLevel)
- return WTF::nullopt;
- return { { WTFMove(*cssValueID), WTFMove(*useDarkAppearance), WTFMove(*useElevatedUserInterfaceLevel) } };
-}
-
-inline unsigned CSSValueKey::hash() const
-{
- return cssValueID;
-}
-
-} // namespace WebCore
-
-namespace WTF {
-
-struct CSSValueKeyHash {
- static unsigned hash(const WebCore::CSSValueKey& key) { return key.hash(); }
- static bool equal(const WebCore::CSSValueKey& a, const WebCore::CSSValueKey& b) { return a == b; }
- static const bool safeToCompareToEmptyOrDeleted = true;
-};
-
-template<> struct HashTraits<WebCore::CSSValueKey> : GenericHashTraits<WebCore::CSSValueKey> {
- static WebCore::CSSValueKey emptyValue() { return WebCore::CSSValueKey { WebCore::CSSValueInvalid, false, false}; }
- static void constructDeletedValue(WebCore::CSSValueKey& slot) { slot = WebCore::CSSValueKey { WebCore::CSSValueInvalid, true, true};}
- static bool isDeletedValue(const WebCore::CSSValueKey& slot) { return slot.cssValueID == WebCore::CSSValueInvalid && slot.useDarkAppearance && slot.useElevatedUserInterfaceLevel; }
-};
-
-template<> struct DefaultHash<WebCore::CSSValueKey> {
- typedef CSSValueKeyHash Hash;
-};
-
-} // namespace WTF
Modified: branches/safari-609.1.13-branch/Source/WebCore/rendering/RenderThemeIOS.h (253772 => 253773)
--- branches/safari-609.1.13-branch/Source/WebCore/rendering/RenderThemeIOS.h 2019-12-19 19:24:01 UTC (rev 253772)
+++ branches/safari-609.1.13-branch/Source/WebCore/rendering/RenderThemeIOS.h 2019-12-19 19:27:15 UTC (rev 253773)
@@ -27,7 +27,6 @@
#if PLATFORM(IOS_FAMILY)
-#include "CSSValueKey.h"
#include "RenderThemeCocoa.h"
#if USE(SYSTEM_PREVIEW)
@@ -60,9 +59,6 @@
void paintSystemPreviewBadge(Image&, const PaintInfo&, const FloatRect&) override;
#endif
- WEBCORE_EXPORT static const HashMap<CSSValueKey, Color>& getOrCreateCSSValueToSystemColorMap();
- WEBCORE_EXPORT static void setCSSValueToSystemColorMap(HashMap<CSSValueKey, Color>&&);
-
protected:
LengthBox popupInternalPaddingBox(const RenderStyle&) const override;
Modified: branches/safari-609.1.13-branch/Source/WebCore/rendering/RenderThemeIOS.mm (253772 => 253773)
--- branches/safari-609.1.13-branch/Source/WebCore/rendering/RenderThemeIOS.mm 2019-12-19 19:24:01 UTC (rev 253772)
+++ branches/safari-609.1.13-branch/Source/WebCore/rendering/RenderThemeIOS.mm 2019-12-19 19:27:15 UTC (rev 253773)
@@ -31,7 +31,6 @@
#import "BitmapImage.h"
#import "CSSPrimitiveValue.h"
#import "CSSToLengthConversionData.h"
-#import "CSSValueKey.h"
#import "CSSValueKeywords.h"
#import "ColorIOS.h"
#import "DateComponents.h"
@@ -1431,113 +1430,6 @@
#endif // ENABLE(VIDEO)
-struct CSSValueIDAndSelector {
- CSSValueID cssValueID;
- SEL selector;
-};
-
-static const Vector<CSSValueIDAndSelector>& cssValueIDSelectorList()
-{
- static NeverDestroyed<Vector<CSSValueIDAndSelector>> cssValueIDSelectorList;
-
- static std::once_flag initializeOnce;
- std::call_once(
- initializeOnce,
- [] {
- cssValueIDSelectorList.get() = Vector(std::initializer_list<CSSValueIDAndSelector> {
-#if HAVE(OS_DARK_MODE_SUPPORT)
- { CSSValueText, @selector(labelColor) },
- { CSSValueAppleSystemLabel, @selector(labelColor) },
- { CSSValueAppleSystemHeaderText, @selector(labelColor) },
- { CSSValueAppleSystemSecondaryLabel, @selector(secondaryLabelColor) },
- { CSSValueAppleSystemTertiaryLabel, @selector(tertiaryLabelColor) },
- { CSSValueAppleSystemQuaternaryLabel, @selector(quaternaryLabelColor) },
- { CSSValueAppleSystemPlaceholderText, @selector(placeholderTextColor) },
- { CSSValueWebkitControlBackground, @selector(systemBackgroundColor) },
- { CSSValueAppleSystemControlBackground, @selector(systemBackgroundColor) },
- { CSSValueAppleSystemTextBackground, @selector(systemBackgroundColor) },
- { CSSValueAppleSystemBackground, @selector(systemBackgroundColor) },
- { CSSValueAppleSystemSecondaryBackground, @selector(secondarySystemBackgroundColor) },
- { CSSValueAppleSystemTertiaryBackground, @selector(tertiarySystemBackgroundColor) },
- { CSSValueAppleSystemGroupedBackground, @selector(systemGroupedBackgroundColor) },
- { CSSValueAppleSystemSecondaryGroupedBackground, @selector(secondarySystemGroupedBackgroundColor) },
- { CSSValueAppleSystemTertiaryGroupedBackground, @selector(tertiarySystemGroupedBackgroundColor) },
- { CSSValueAppleSystemGrid, @selector(separatorColor) },
- { CSSValueAppleSystemSeparator, @selector(separatorColor) },
- { CSSValueAppleSystemContainerBorder, @selector(separatorColor) },
- { CSSValueAppleSystemSelectedContentBackground, @selector(tableCellDefaultSelectionTintColor) },
- { CSSValueAppleSystemUnemphasizedSelectedContentBackground, @selector(tableCellDefaultSelectionTintColor) },
- { CSSValueAppleSystemBrown, @selector(systemBrownColor) },
- { CSSValueAppleSystemIndigo, @selector(systemIndigoColor) },
-#endif
- { CSSValueAppleSystemTeal, @selector(systemTealColor) },
- { CSSValueAppleWirelessPlaybackTargetActive, @selector(systemBlueColor) },
- { CSSValueAppleSystemBlue, @selector(systemBlueColor) },
- { CSSValueAppleSystemGray, @selector(systemGrayColor) },
- { CSSValueAppleSystemGreen, @selector(systemGreenColor) },
- { CSSValueAppleSystemOrange, @selector(systemOrangeColor) },
- { CSSValueAppleSystemPink, @selector(systemPinkColor) },
- { CSSValueAppleSystemPurple, @selector(systemPurpleColor) },
- { CSSValueAppleSystemRed, @selector(systemRedColor) },
- { CSSValueAppleSystemYellow, @selector(systemYellowColor) }
- });
- });
-
- return cssValueIDSelectorList;
-}
-
-static Optional<Color> systemColorFromCSSValueID(CSSValueID cssValueID, bool useDarkAppearance, bool useElevatedUserInterfaceLevel)
-{
- LocalCurrentTraitCollection localTraitCollection(useDarkAppearance, useElevatedUserInterfaceLevel);
-
- auto cssColorToSelector = [cssValueID] () -> SEL {
- for (auto& cssValueIDSelector : cssValueIDSelectorList()) {
- if (cssValueIDSelector.cssValueID == cssValueID)
- return cssValueIDSelector.selector;
- }
- return nullptr;
- };
-
- if (auto selector = cssColorToSelector()) {
- if (auto color = wtfObjCMsgSend<UIColor *>(PAL::getUIColorClass(), selector))
- return Color(color.CGColor, Color::Semantic);
- }
- return WTF::nullopt;
-}
-
-
-static HashMap<CSSValueKey, Color>& globalCSSValueToSystemColorMap()
-{
- static NeverDestroyed<HashMap<CSSValueKey, Color>> colorMap;
- return colorMap;
-}
-
-const HashMap<CSSValueKey, Color>& RenderThemeIOS::getOrCreateCSSValueToSystemColorMap()
-{
- static NeverDestroyed<HashMap<CSSValueKey, Color>> map;
-
- static std::once_flag onceFlag;
- std::call_once(
- onceFlag,
- [] {
- for (auto& cssValueIDSelector : cssValueIDSelectorList()) {
- for (bool useDarkAppearance : { false, true }) {
- for (bool useElevatedUserInterfaceLevel : { false, true }) {
- if (auto color = systemColorFromCSSValueID(cssValueIDSelector.cssValueID, useDarkAppearance, useElevatedUserInterfaceLevel))
- map.get().add(CSSValueKey { cssValueIDSelector.cssValueID, useDarkAppearance, useElevatedUserInterfaceLevel }, *color);
- }
- }
- }
- });
-
- return map;
-}
-
-void RenderThemeIOS::setCSSValueToSystemColorMap(HashMap<CSSValueKey, Color>&& colorMap)
-{
- globalCSSValueToSystemColorMap() = WTFMove(colorMap);
-}
-
Color RenderThemeIOS::systemColor(CSSValueID cssValueID, OptionSet<StyleColor::Options> options) const
{
const bool forVisitedLink = options.contains(StyleColor::Options::ForVisitedLink);
@@ -1554,15 +1446,79 @@
return cache.systemStyleColors.ensure(cssValueID, [this, cssValueID, options] () -> Color {
const bool useDarkAppearance = options.contains(StyleColor::Options::UseDarkAppearance);
const bool useElevatedUserInterfaceLevel = options.contains(StyleColor::Options::UseElevatedUserInterfaceLevel);
- if (!globalCSSValueToSystemColorMap().isEmpty()) {
- auto it = globalCSSValueToSystemColorMap().find(CSSValueKey { cssValueID, useDarkAppearance, useElevatedUserInterfaceLevel });
- if (it == globalCSSValueToSystemColorMap().end())
- return RenderTheme::systemColor(cssValueID, options);
- return it->value;
+ LocalCurrentTraitCollection localTraitCollection(useDarkAppearance, useElevatedUserInterfaceLevel);
+
+ auto cssColorToSelector = [cssValueID] () -> SEL {
+ switch (cssValueID) {
+#if HAVE(OS_DARK_MODE_SUPPORT)
+ case CSSValueText:
+ case CSSValueAppleSystemLabel:
+ case CSSValueAppleSystemHeaderText:
+ return @selector(labelColor);
+ case CSSValueAppleSystemSecondaryLabel:
+ return @selector(secondaryLabelColor);
+ case CSSValueAppleSystemTertiaryLabel:
+ return @selector(tertiaryLabelColor);
+ case CSSValueAppleSystemQuaternaryLabel:
+ return @selector(quaternaryLabelColor);
+ case CSSValueAppleSystemPlaceholderText:
+ return @selector(placeholderTextColor);
+ case CSSValueWebkitControlBackground:
+ case CSSValueAppleSystemControlBackground:
+ case CSSValueAppleSystemTextBackground:
+ case CSSValueAppleSystemBackground:
+ return @selector(systemBackgroundColor);
+ case CSSValueAppleSystemSecondaryBackground:
+ return @selector(secondarySystemBackgroundColor);
+ case CSSValueAppleSystemTertiaryBackground:
+ return @selector(tertiarySystemBackgroundColor);
+ case CSSValueAppleSystemGroupedBackground:
+ return @selector(systemGroupedBackgroundColor);
+ case CSSValueAppleSystemSecondaryGroupedBackground:
+ return @selector(secondarySystemGroupedBackgroundColor);
+ case CSSValueAppleSystemTertiaryGroupedBackground:
+ return @selector(tertiarySystemGroupedBackgroundColor);
+ case CSSValueAppleSystemGrid:
+ case CSSValueAppleSystemSeparator:
+ case CSSValueAppleSystemContainerBorder:
+ return @selector(separatorColor);
+ case CSSValueAppleSystemSelectedContentBackground:
+ case CSSValueAppleSystemUnemphasizedSelectedContentBackground:
+ return @selector(tableCellDefaultSelectionTintColor);
+ case CSSValueAppleSystemBrown:
+ return @selector(systemBrownColor);
+ case CSSValueAppleSystemIndigo:
+ return @selector(systemIndigoColor);
+#endif
+ case CSSValueAppleSystemTeal:
+ return @selector(systemTealColor);
+ case CSSValueAppleWirelessPlaybackTargetActive:
+ case CSSValueAppleSystemBlue:
+ return @selector(systemBlueColor);
+ case CSSValueAppleSystemGray:
+ return @selector(systemGrayColor);
+ case CSSValueAppleSystemGreen:
+ return @selector(systemGreenColor);
+ case CSSValueAppleSystemOrange:
+ return @selector(systemOrangeColor);
+ case CSSValueAppleSystemPink:
+ return @selector(systemPinkColor);
+ case CSSValueAppleSystemPurple:
+ return @selector(systemPurpleColor);
+ case CSSValueAppleSystemRed:
+ return @selector(systemRedColor);
+ case CSSValueAppleSystemYellow:
+ return @selector(systemYellowColor);
+ default:
+ return nullptr;
+ }
+ };
+
+ if (auto selector = cssColorToSelector()) {
+ if (auto color = wtfObjCMsgSend<UIColor *>(PAL::getUIColorClass(), selector))
+ return Color(color.CGColor, Color::Semantic);
}
- auto color = systemColorFromCSSValueID(cssValueID, useDarkAppearance, useElevatedUserInterfaceLevel);
- if (color)
- return *color;
+
return RenderTheme::systemColor(cssValueID, options);
}).iterator->value;
}
Modified: branches/safari-609.1.13-branch/Source/WebKit/ChangeLog (253772 => 253773)
--- branches/safari-609.1.13-branch/Source/WebKit/ChangeLog 2019-12-19 19:24:01 UTC (rev 253772)
+++ branches/safari-609.1.13-branch/Source/WebKit/ChangeLog 2019-12-19 19:27:15 UTC (rev 253773)
@@ -1,3 +1,7 @@
+2019-12-19 Alan Coon <alanc...@apple.com>
+
+ Revert r253530. rdar://problem/58070303
+
2019-12-14 Per Arne Vollan <pvol...@apple.com>
Map CSS value ID to system color in the UI process
Modified: branches/safari-609.1.13-branch/Source/WebKit/Shared/WebProcessCreationParameters.cpp (253772 => 253773)
--- branches/safari-609.1.13-branch/Source/WebKit/Shared/WebProcessCreationParameters.cpp 2019-12-19 19:24:01 UTC (rev 253772)
+++ branches/safari-609.1.13-branch/Source/WebKit/Shared/WebProcessCreationParameters.cpp 2019-12-19 19:27:15 UTC (rev 253773)
@@ -169,10 +169,6 @@
encoder << neHelperExtensionHandle;
encoder << neSessionManagerExtensionHandle;
#endif
-
-#if PLATFORM(IOS)
- encoder << cssValueToSystemColorMap;
-#endif
}
bool WebProcessCreationParameters::decode(IPC::Decoder& decoder, WebProcessCreationParameters& parameters)
@@ -433,14 +429,6 @@
parameters.neSessionManagerExtensionHandle = WTFMove(*neSessionManagerExtensionHandle);
#endif
-#if PLATFORM(IOS)
- Optional<HashMap<WebCore::CSSValueKey, WebCore::Color>> cssValueToSystemColorMap;
- decoder >> cssValueToSystemColorMap;
- if (!cssValueToSystemColorMap)
- return false;
- parameters.cssValueToSystemColorMap = WTFMove(*cssValueToSystemColorMap);
-#endif
-
return true;
}
Modified: branches/safari-609.1.13-branch/Source/WebKit/Shared/WebProcessCreationParameters.h (253772 => 253773)
--- branches/safari-609.1.13-branch/Source/WebKit/Shared/WebProcessCreationParameters.h 2019-12-19 19:24:01 UTC (rev 253772)
+++ branches/safari-609.1.13-branch/Source/WebKit/Shared/WebProcessCreationParameters.h 2019-12-19 19:27:15 UTC (rev 253773)
@@ -51,10 +51,6 @@
#include <WebCore/SoupNetworkProxySettings.h>
#endif
-#if PLATFORM(IOS)
-#include <WebCore/RenderThemeIOS.h>
-#endif
-
namespace API {
class Data;
}
@@ -211,10 +207,6 @@
Optional<SandboxExtension::Handle> neHelperExtensionHandle;
Optional<SandboxExtension::Handle> neSessionManagerExtensionHandle;
#endif
-
-#if PLATFORM(IOS)
- HashMap<WebCore::CSSValueKey, WebCore::Color> cssValueToSystemColorMap;
-#endif
};
} // namespace WebKit
Modified: branches/safari-609.1.13-branch/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm (253772 => 253773)
--- branches/safari-609.1.13-branch/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm 2019-12-19 19:24:01 UTC (rev 253772)
+++ branches/safari-609.1.13-branch/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm 2019-12-19 19:27:15 UTC (rev 253773)
@@ -324,10 +324,6 @@
parameters.contentFilterExtensionHandle = WTFMove(handle);
}
#endif
-
-#if PLATFORM(IOS)
- parameters.cssValueToSystemColorMap = RenderThemeIOS::getOrCreateCSSValueToSystemColorMap();
-#endif
}
void WebProcessPool::platformInitializeNetworkProcess(NetworkProcessCreationParameters& parameters)
Modified: branches/safari-609.1.13-branch/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (253772 => 253773)
--- branches/safari-609.1.13-branch/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm 2019-12-19 19:24:01 UTC (rev 253772)
+++ branches/safari-609.1.13-branch/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm 2019-12-19 19:27:15 UTC (rev 253773)
@@ -243,10 +243,6 @@
SandboxExtension::consumePermanently(*parameters.neSessionManagerExtensionHandle);
NetworkExtensionContentFilter::setHasConsumedSandboxExtensions(parameters.neHelperExtensionHandle.hasValue() && parameters.neSessionManagerExtensionHandle.hasValue());
#endif
-
-#if PLATFORM(IOS)
- RenderThemeIOS::setCSSValueToSystemColorMap(WTFMove(parameters.cssValueToSystemColorMap));
-#endif
}
void WebProcess::platformSetWebsiteDataStoreParameters(WebProcessDataStoreParameters&& parameters)