Title: [246687] trunk/Source/WebKit
- Revision
- 246687
- Author
- [email protected]
- Date
- 2019-06-21 12:12:44 -0700 (Fri, 21 Jun 2019)
Log Message
Address reference to UIColor.groupTableViewBackgroundColor in WKPasswordView.mm
https://bugs.webkit.org/show_bug.cgi?id=199111
<rdar://problem/51992107>
Reviewed by Timothy Hatcher.
WKPasswordView.mm is used on iOS-family devices. However, it doesn't
build on tvOS or watchOS when "treat deprecation warnings as errors"
is enabled. This build failure is due to a reference to
UIColor.groupTableViewBackgroundColor in a branch of non-dark-mode
code. Address this by surrounding the reference with
ALLOW_DEPRECATED_DECLARATIONS_* macros.
Attempting to address the build failure by unconditionally enabling
the dark-mode code works for tvOS, but fails for watchOS due to lack
of dark-mode support on that platform.
* UIProcess/ios/WKPasswordView.mm:
(-[WKPasswordView showInScrollView:]):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (246686 => 246687)
--- trunk/Source/WebKit/ChangeLog 2019-06-21 18:21:17 UTC (rev 246686)
+++ trunk/Source/WebKit/ChangeLog 2019-06-21 19:12:44 UTC (rev 246687)
@@ -1,3 +1,25 @@
+2019-06-21 Keith Rollin <[email protected]>
+
+ Address reference to UIColor.groupTableViewBackgroundColor in WKPasswordView.mm
+ https://bugs.webkit.org/show_bug.cgi?id=199111
+ <rdar://problem/51992107>
+
+ Reviewed by Timothy Hatcher.
+
+ WKPasswordView.mm is used on iOS-family devices. However, it doesn't
+ build on tvOS or watchOS when "treat deprecation warnings as errors"
+ is enabled. This build failure is due to a reference to
+ UIColor.groupTableViewBackgroundColor in a branch of non-dark-mode
+ code. Address this by surrounding the reference with
+ ALLOW_DEPRECATED_DECLARATIONS_* macros.
+
+ Attempting to address the build failure by unconditionally enabling
+ the dark-mode code works for tvOS, but fails for watchOS due to lack
+ of dark-mode support on that platform.
+
+ * UIProcess/ios/WKPasswordView.mm:
+ (-[WKPasswordView showInScrollView:]):
+
2019-06-21 Michael Catanzaro <[email protected]>
[WPE][GTK] Bump minimum versions of GLib, GTK, libsoup, ATK, GStreamer, and Cairo
Modified: trunk/Source/WebKit/UIProcess/ios/WKPasswordView.mm (246686 => 246687)
--- trunk/Source/WebKit/UIProcess/ios/WKPasswordView.mm 2019-06-21 18:21:17 UTC (rev 246686)
+++ trunk/Source/WebKit/UIProcess/ios/WKPasswordView.mm 2019-06-21 19:12:44 UTC (rev 246687)
@@ -104,7 +104,9 @@
#if HAVE(OS_DARK_MODE_SUPPORT)
[_scrollView setBackgroundColor:UIColor.systemGroupedBackgroundColor];
#else
+ ALLOW_DEPRECATED_DECLARATIONS_BEGIN
[_scrollView setBackgroundColor:UIColor.groupTableViewBackgroundColor];
+ ALLOW_DEPRECATED_DECLARATIONS_END
#endif
[scrollView addSubview:self];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes