Diff
Modified: trunk/Source/WTF/ChangeLog (250308 => 250309)
--- trunk/Source/WTF/ChangeLog 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WTF/ChangeLog 2019-09-24 18:03:30 UTC (rev 250309)
@@ -1,3 +1,20 @@
+2019-09-24 Keith Rollin <[email protected]>
+
+ Coalesce or remove PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+ https://bugs.webkit.org/show_bug.cgi?id=202119
+ <rdar://problem/55638792>
+
+ Reviewed by Alex Christensen.
+
+ After refactoring and other code evolution, some platform checks have
+ ended up looking like PLATFORM(MAC) || PLATFORM(IOS_FAMILY) (or
+ vice-versa). These can be converted into the equivalent
+ PLATFORM(COCOA). Where the instance occurs in a Cocoa-only file, the
+ check can be removed altogether (along with any "#else" branches).
+
+ * wtf/Platform.h:
+ * wtf/text/TextBreakIterator.h:
+
2019-09-21 David Kilzer <[email protected]>
clang-tidy: Fix unnecessary copy/ref churn of for loop variables in WTF/_javascript_Core
Modified: trunk/Source/WTF/wtf/Platform.h (250308 => 250309)
--- trunk/Source/WTF/wtf/Platform.h 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WTF/wtf/Platform.h 2019-09-24 18:03:30 UTC (rev 250309)
@@ -1193,7 +1193,7 @@
#endif
#endif
-#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
+#if PLATFORM(COCOA)
#define USE_COREMEDIA 1
#define USE_VIDEOTOOLBOX 1
#define HAVE_AVFOUNDATION_VIDEO_OUTPUT 1
@@ -1201,16 +1201,16 @@
#define HAVE_MEDIA_PLAYER 1
#endif
-#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
+#if PLATFORM(COCOA)
#define HAVE_AVFOUNDATION_MEDIA_SELECTION_GROUP 1
#endif
-#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
+#if PLATFORM(COCOA)
#define HAVE_AVFOUNDATION_LEGIBLE_OUTPUT_SUPPORT 1
#define HAVE_MEDIA_ACCESSIBILITY_FRAMEWORK 1
#endif
-#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
+#if PLATFORM(COCOA)
#define HAVE_AVFOUNDATION_LOADER_DELEGATE 1
#endif
@@ -1265,7 +1265,7 @@
#define USE_INSERTION_UNDO_GROUPING 1
#endif
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
#define HAVE_AVASSETREADER 1
#endif
@@ -1323,7 +1323,7 @@
#define USE_MEDIATOOLBOX 1
#endif
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
#define USE_OS_LOG 1
#if USE(APPLE_INTERNAL_SDK)
#define USE_OS_STATE 1
@@ -1358,7 +1358,7 @@
#endif
#endif
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
#define USE_MEDIAREMOTE 1
#endif
@@ -1426,7 +1426,7 @@
#define HAVE_NSHTTPCOOKIESTORAGE__INITWITHIDENTIFIER_WITH_INACCURATE_NULLABILITY 1
#endif
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
#define HAVE_CFNETWORK_WITH_CONTENT_ENCODING_SNIFFING_OVERRIDE 1
/* The override isn't needed on iOS family, as the default behavior is to not sniff. */
/* FIXME: This should probably be enabled on 10.13.2 and newer, not just 10.14 and newer. */
Modified: trunk/Source/WTF/wtf/text/TextBreakIterator.h (250308 => 250309)
--- trunk/Source/WTF/wtf/text/TextBreakIterator.h 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WTF/wtf/text/TextBreakIterator.h 2019-09-24 18:03:30 UTC (rev 250309)
@@ -26,7 +26,7 @@
#include <wtf/text/StringView.h>
#include <wtf/text/icu/TextBreakIteratorICU.h>
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
#include <wtf/text/cf/TextBreakIteratorCF.h>
#else
#include <wtf/text/NullTextBreakIterator.h>
@@ -34,7 +34,7 @@
namespace WTF {
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
typedef TextBreakIteratorCF TextBreakIteratorPlatform;
#else
typedef NullTextBreakIterator TextBreakIteratorPlatform;
Modified: trunk/Source/WebCore/ChangeLog (250308 => 250309)
--- trunk/Source/WebCore/ChangeLog 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/ChangeLog 2019-09-24 18:03:30 UTC (rev 250309)
@@ -1,3 +1,42 @@
+2019-09-24 Keith Rollin <[email protected]>
+
+ Coalesce or remove PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+ https://bugs.webkit.org/show_bug.cgi?id=202119
+ <rdar://problem/55638792>
+
+ Reviewed by Alex Christensen.
+
+ After refactoring and other code evolution, some platform checks have
+ ended up looking like PLATFORM(MAC) || PLATFORM(IOS_FAMILY) (or
+ vice-versa). These can be converted into the equivalent
+ PLATFORM(COCOA). Where the instance occurs in a Cocoa-only file, the
+ check can be removed altogether (along with any "#else" branches).
+
+ No new tests -- no new or changed functionality.
+
+ * Modules/applepay/cocoa/PaymentContactCocoa.mm:
+ (WebCore::subLocality):
+ (WebCore::setSubLocality):
+ (WebCore::subAdministrativeArea):
+ (WebCore::setSubAdministrativeArea):
+ * css/parser/CSSPropertyParser.cpp:
+ (WebCore::isAppleLegacyCssValueKeyword):
+ * html/HTMLMediaElement.cpp:
+ (WebCore::HTMLMediaElement::mediaSessionTitle const):
+ * inspector/InspectorFrontendHost.cpp:
+ (WebCore::InspectorFrontendHost::platform):
+ * page/FrameView.cpp:
+ (WebCore::FrameView::updateBackgroundRecursively):
+ * platform/Timer.cpp:
+ * platform/cocoa/NetworkExtensionContentFilter.mm:
+ (WebCore::NetworkExtensionContentFilter::initialize):
+ * platform/graphics/cg/GraphicsContextCG.cpp:
+ (WebCore::displayP3ColorSpaceRef):
+ * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
+ * platform/network/cf/SocketStreamHandleImplCFNet.cpp:
+ * rendering/RenderLayerCompositor.cpp:
+ (WebCore::RenderLayerCompositor::requiresCompositingForScrollableFrame const):
+
2019-09-24 Antoine Quint <[email protected]>
[Web Animations] Unflake web-animations/timing-model/animations/updating-the-finished-state.html WPT test
Modified: trunk/Source/WebCore/Modules/applepay/cocoa/PaymentContactCocoa.mm (250308 => 250309)
--- trunk/Source/WebCore/Modules/applepay/cocoa/PaymentContactCocoa.mm 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/Modules/applepay/cocoa/PaymentContactCocoa.mm 2019-09-24 18:03:30 UTC (rev 250309)
@@ -42,42 +42,22 @@
static NSString *subLocality(CNPostalAddress *address)
{
-#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
return address.subLocality;
-#else
- UNUSED_PARAM(address);
- return nil;
-#endif
}
static void setSubLocality(CNMutablePostalAddress *address, NSString *subLocality)
{
-#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
address.subLocality = subLocality;
-#else
- UNUSED_PARAM(address);
- UNUSED_PARAM(subLocality);
-#endif
}
static NSString *subAdministrativeArea(CNPostalAddress *address)
{
-#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
return address.subAdministrativeArea;
-#else
- UNUSED_PARAM(address);
- return nil;
-#endif
}
static void setSubAdministrativeArea(CNMutablePostalAddress *address, NSString *subAdministrativeArea)
{
-#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
address.subAdministrativeArea = subAdministrativeArea;
-#else
- UNUSED_PARAM(address);
- UNUSED_PARAM(subAdministrativeArea);
-#endif
}
static RetainPtr<PKContact> convert(unsigned version, const ApplePayPaymentContact& contact)
Modified: trunk/Source/WebCore/PAL/ChangeLog (250308 => 250309)
--- trunk/Source/WebCore/PAL/ChangeLog 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/PAL/ChangeLog 2019-09-24 18:03:30 UTC (rev 250309)
@@ -1,3 +1,21 @@
+2019-09-24 Keith Rollin <[email protected]>
+
+ Coalesce or remove PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+ https://bugs.webkit.org/show_bug.cgi?id=202119
+ <rdar://problem/55638792>
+
+ Reviewed by Alex Christensen.
+
+ After refactoring and other code evolution, some platform checks have
+ ended up looking like PLATFORM(MAC) || PLATFORM(IOS_FAMILY) (or
+ vice-versa). These can be converted into the equivalent
+ PLATFORM(COCOA). Where the instance occurs in a Cocoa-only file, the
+ check can be removed altogether (along with any "#else" branches).
+
+ * pal/spi/cf/CFNetworkSPI.h:
+ * pal/spi/cocoa/NEFilterSourceSPI.h:
+ * pal/spi/mac/AVFoundationSPI.h:
+
2019-09-20 Keith Rollin <[email protected]>
Remove some support for < iOS 13
Modified: trunk/Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h (250308 => 250309)
--- trunk/Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h 2019-09-24 18:03:30 UTC (rev 250309)
@@ -218,7 +218,7 @@
#endif
@end
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
@interface NSURLSessionTaskTransactionMetrics ()
@property (copy, readonly) NSString* _remoteAddressAndPort;
@property (copy, readonly) NSUUID* _connectionIdentifier;
Modified: trunk/Source/WebCore/PAL/pal/spi/cocoa/NEFilterSourceSPI.h (250308 => 250309)
--- trunk/Source/WebCore/PAL/pal/spi/cocoa/NEFilterSourceSPI.h 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/PAL/pal/spi/cocoa/NEFilterSourceSPI.h 2019-09-24 18:03:30 UTC (rev 250309)
@@ -69,7 +69,7 @@
- (void)receivedData:(NSData *)data decisionHandler:(NEFilterSourceDecisionHandler)decisionHandler;
- (void)finishedLoadingWithDecisionHandler:(NEFilterSourceDecisionHandler)decisionHandler;
- (void)remediateWithDecisionHandler:(NEFilterSourceDecisionHandler)decisionHandler;
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
@property (copy) NSString *sourceAppIdentifier;
@property (assign) pid_t sourceAppPid;
#endif
Modified: trunk/Source/WebCore/PAL/pal/spi/mac/AVFoundationSPI.h (250308 => 250309)
--- trunk/Source/WebCore/PAL/pal/spi/mac/AVFoundationSPI.h 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/PAL/pal/spi/mac/AVFoundationSPI.h 2019-09-24 18:03:30 UTC (rev 250309)
@@ -54,7 +54,7 @@
#import <AVFoundation/AVPlayerItem.h>
#import <AVFoundation/AVPlayerLayer.h>
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
NS_ASSUME_NONNULL_BEGIN
@interface AVPlayerItem ()
@property (nonatomic, readonly) NSTimeInterval seekableTimeRangesLastModifiedTime NS_AVAILABLE(10_13, 11_0);
@@ -61,7 +61,7 @@
@property (nonatomic, readonly) NSTimeInterval liveUpdateInterval;
@end
NS_ASSUME_NONNULL_END
-#endif // PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#endif // PLATFORM(COCOA)
#if ENABLE(WIRELESS_PLAYBACK_TARGET) || PLATFORM(IOS_FAMILY)
Modified: trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp (250308 => 250309)
--- trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp 2019-09-24 18:03:30 UTC (rev 250309)
@@ -155,7 +155,7 @@
static const char appleSystemPrefix[] = "-apple-system";
static const char applePayPrefix[] = "-apple-pay";
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
static const char* appleWirelessPlaybackTargetActive = getValueName(CSSValueAppleWirelessPlaybackTargetActive);
#endif
@@ -162,7 +162,7 @@
return hasPrefix(valueKeyword, length, applePrefix)
&& !hasPrefix(valueKeyword, length, appleSystemPrefix)
&& !hasPrefix(valueKeyword, length, applePayPrefix)
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
&& !WTF::equal(reinterpret_cast<const LChar*>(valueKeyword), reinterpret_cast<const LChar*>(appleWirelessPlaybackTargetActive), length)
#endif
;
Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (250308 => 250309)
--- trunk/Source/WebCore/html/HTMLMediaElement.cpp 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp 2019-09-24 18:03:30 UTC (rev 250309)
@@ -7637,7 +7637,7 @@
return title;
title = m_currentSrc.host().toString();
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
if (!title.isEmpty())
title = decodeHostName(title);
#endif
Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp (250308 => 250309)
--- trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp 2019-09-24 18:03:30 UTC (rev 250309)
@@ -295,7 +295,7 @@
String InspectorFrontendHost::platform()
{
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
return "mac"_s;
#elif OS(WINDOWS)
return "windows"_s;
Modified: trunk/Source/WebCore/page/FrameView.cpp (250308 => 250309)
--- trunk/Source/WebCore/page/FrameView.cpp 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/page/FrameView.cpp 2019-09-24 18:03:30 UTC (rev 250309)
@@ -2977,7 +2977,7 @@
void FrameView::updateBackgroundRecursively(const Optional<Color>& backgroundColor)
{
#if HAVE(OS_DARK_MODE_SUPPORT)
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
static const auto cssValueControlBackground = CSSValueAppleSystemControlBackground;
#else
static const auto cssValueControlBackground = CSSValueWindow;
Modified: trunk/Source/WebCore/platform/Timer.cpp (250308 => 250309)
--- trunk/Source/WebCore/platform/Timer.cpp 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/platform/Timer.cpp 2019-09-24 18:03:30 UTC (rev 250309)
@@ -37,7 +37,7 @@
#include <wtf/MainThread.h>
#include <wtf/Vector.h>
-#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
+#if PLATFORM(COCOA)
#include <wtf/spi/darwin/dyldSPI.h>
#endif
Modified: trunk/Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.mm (250308 => 250309)
--- trunk/Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.mm 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.mm 2019-09-24 18:03:30 UTC (rev 250309)
@@ -70,10 +70,8 @@
m_queue = adoptOSObject(dispatch_queue_create("WebKit NetworkExtension Filtering", DISPATCH_QUEUE_SERIAL));
ASSERT_UNUSED(url, !url);
m_neFilterSource = adoptNS([allocNEFilterSourceInstance() initWithDecisionQueue:m_queue.get()]);
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
[m_neFilterSource setSourceAppIdentifier:applicationBundleIdentifier()];
[m_neFilterSource setSourceAppPid:presentingApplicationPID()];
-#endif
}
void NetworkExtensionContentFilter::willSendRequest(ResourceRequest& request, const ResourceResponse& redirectResponse)
Modified: trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp (250308 => 250309)
--- trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp 2019-09-24 18:03:30 UTC (rev 250309)
@@ -125,7 +125,7 @@
static CGColorSpaceRef displayP3ColorSpace;
static std::once_flag onceFlag;
std::call_once(onceFlag, [] {
-#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
+#if PLATFORM(COCOA)
displayP3ColorSpace = CGColorSpaceCreateWithName(kCGColorSpaceDisplayP3);
#else
displayP3ColorSpace = sRGBColorSpaceRef();
Modified: trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp (250308 => 250309)
--- trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp 2019-09-24 18:03:30 UTC (rev 250309)
@@ -551,7 +551,7 @@
::glBufferSubData(target, offset, size, data);
}
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY) || PLATFORM(WPE)
+#if PLATFORM(COCOA) || PLATFORM(WPE)
void* GraphicsContext3D::mapBufferRange(GC3Denum target, GC3Dintptr offset, GC3Dsizeiptr length, GC3Dbitfield access)
{
makeContextCurrent();
Modified: trunk/Source/WebCore/platform/network/cf/SocketStreamHandleImplCFNet.cpp (250308 => 250309)
--- trunk/Source/WebCore/platform/network/cf/SocketStreamHandleImplCFNet.cpp 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/platform/network/cf/SocketStreamHandleImplCFNet.cpp 2019-09-24 18:03:30 UTC (rev 250309)
@@ -58,7 +58,7 @@
#include "WebCoreThreadInternal.h"
#endif
-#if PLATFORM(IOS_FAMILY) || PLATFORM(MAC)
+#if PLATFORM(COCOA)
extern "C" const CFStringRef kCFStreamPropertySourceApplication;
extern "C" const CFStringRef _kCFStreamSocketSetNoDelay;
#endif
Modified: trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp (250308 => 250309)
--- trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp 2019-09-24 18:03:30 UTC (rev 250309)
@@ -2972,7 +2972,7 @@
if (isMainFrameCompositor())
return false;
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
if (!m_renderView.settings().asyncFrameScrollingEnabled())
return false;
#endif
Modified: trunk/Source/WebKit/ChangeLog (250308 => 250309)
--- trunk/Source/WebKit/ChangeLog 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebKit/ChangeLog 2019-09-24 18:03:30 UTC (rev 250309)
@@ -1,3 +1,21 @@
+2019-09-24 Keith Rollin <[email protected]>
+
+ Coalesce or remove PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+ https://bugs.webkit.org/show_bug.cgi?id=202119
+ <rdar://problem/55638792>
+
+ Reviewed by Alex Christensen.
+
+ After refactoring and other code evolution, some platform checks have
+ ended up looking like PLATFORM(MAC) || PLATFORM(IOS_FAMILY) (or
+ vice-versa). These can be converted into the equivalent
+ PLATFORM(COCOA). Where the instance occurs in a Cocoa-only file, the
+ check can be removed altogether (along with any "#else" branches).
+
+ * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
+ (-[WKNetworkSessionDelegate URLSession:task:didFinishCollectingMetrics:]):
+ * WebProcess/WebCoreSupport/WebChromeClient.h:
+
2019-09-24 Wenson Hsieh <[email protected]>
FocusPreservationTests.ChangingFocusedNodeResetsFocusPreservationState triggers a debug assertion
Modified: trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm (250308 => 250309)
--- trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm 2019-09-24 18:03:30 UTC (rev 250309)
@@ -677,10 +677,8 @@
if (networkDataTask->shouldCaptureExtraNetworkLoadMetrics()) {
networkLoadMetrics.priority = toNetworkLoadPriority(task.priority);
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
networkLoadMetrics.remoteAddress = String(m._remoteAddressAndPort);
networkLoadMetrics.connectionIdentifier = String([m._connectionIdentifier UUIDString]);
-#endif
#if HAVE(CFNETWORK_NEGOTIATED_SSL_PROTOCOL_CIPHER)
networkLoadMetrics.tlsProtocol = stringForSSLProtocol(m._negotiatedTLSProtocol);
@@ -693,7 +691,6 @@
}];
networkLoadMetrics.requestHeaders = WTFMove(requestHeaders);
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
uint64_t requestHeaderBytesSent = 0;
uint64_t responseHeaderBytesReceived = 0;
uint64_t responseBodyBytesReceived = 0;
@@ -711,7 +708,6 @@
networkLoadMetrics.responseHeaderBytesReceived = responseHeaderBytesReceived;
networkLoadMetrics.responseBodyBytesReceived = responseBodyBytesReceived;
networkLoadMetrics.responseBodyDecodedSize = responseBodyDecodedSize;
-#endif
}
}
}
Modified: trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h (250308 => 250309)
--- trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h 2019-09-24 18:03:30 UTC (rev 250309)
@@ -239,7 +239,7 @@
VideoTrigger |
PluginTrigger|
CanvasTrigger |
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
ScrollableNonMainFrameTrigger |
#endif
#if PLATFORM(IOS_FAMILY)
Modified: trunk/Tools/ChangeLog (250308 => 250309)
--- trunk/Tools/ChangeLog 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Tools/ChangeLog 2019-09-24 18:03:30 UTC (rev 250309)
@@ -1,3 +1,21 @@
+2019-09-24 Keith Rollin <[email protected]>
+
+ Coalesce or remove PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+ https://bugs.webkit.org/show_bug.cgi?id=202119
+ <rdar://problem/55638792>
+
+ Reviewed by Alex Christensen.
+
+ After refactoring and other code evolution, some platform checks have
+ ended up looking like PLATFORM(MAC) || PLATFORM(IOS_FAMILY) (or
+ vice-versa). These can be converted into the equivalent
+ PLATFORM(COCOA). Where the instance occurs in a Cocoa-only file, the
+ check can be removed altogether (along with any "#else" branches).
+
+ * DumpRenderTree/AccessibilityTextMarker.h:
+ * DumpRenderTree/AccessibilityUIElement.cpp:
+ (AccessibilityUIElement::setValue):
+
2019-09-24 Zhifei Fang <[email protected]>
Add tests for Ref.js.
Modified: trunk/Tools/DumpRenderTree/AccessibilityTextMarker.h (250308 => 250309)
--- trunk/Tools/DumpRenderTree/AccessibilityTextMarker.h 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Tools/DumpRenderTree/AccessibilityTextMarker.h 2019-09-24 18:03:30 UTC (rev 250309)
@@ -28,7 +28,7 @@
#include <_javascript_Core/JSObjectRef.h>
-#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if PLATFORM(COCOA)
#define SUPPORTS_AX_TEXTMARKERS 1
#else
#define SUPPORTS_AX_TEXTMARKERS 0
Modified: trunk/Tools/DumpRenderTree/AccessibilityUIElement.cpp (250308 => 250309)
--- trunk/Tools/DumpRenderTree/AccessibilityUIElement.cpp 2019-09-24 17:57:00 UTC (rev 250308)
+++ trunk/Tools/DumpRenderTree/AccessibilityUIElement.cpp 2019-09-24 18:03:30 UTC (rev 250309)
@@ -1611,7 +1611,7 @@
// Implementation
// Unsupported methods on various platforms.
-#if !PLATFORM(MAC) || PLATFORM(IOS_FAMILY)
+#if !PLATFORM(MAC)
JSRetainPtr<JSStringRef> AccessibilityUIElement::rangeForLine(int line) { return 0; }
JSRetainPtr<JSStringRef> AccessibilityUIElement::rangeForPosition(int, int) { return 0; }
void AccessibilityUIElement::setSelectedChild(AccessibilityUIElement*) const { }
@@ -1622,13 +1622,10 @@
AccessibilityUIElement AccessibilityUIElement::uiElementAttributeValue(JSStringRef) const { return { nullptr }; }
#endif
-#if !PLATFORM(MAC) && !PLATFORM(IOS_FAMILY)
+#if !PLATFORM(COCOA)
JSRetainPtr<JSStringRef> AccessibilityUIElement::speakAs() { return nullptr; }
JSRetainPtr<JSStringRef> AccessibilityUIElement::pathDescription() const { return 0; }
void AccessibilityUIElement::setValue(JSStringRef) { }
-#endif
-
-#if !PLATFORM(COCOA)
void AccessibilityUIElement::uiElementArrayAttributeValue(JSStringRef, Vector<AccessibilityUIElement>&) const { }
#endif