WebKit Bugzilla
Attachment 361075 Details for
Bug 194230
: Can't temporarily force light or dark appearance on a page in a WebView
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-194230-20190204111512.patch (text/plain), 1.98 KB, created by
Timothy Hatcher
on 2019-02-04 11:15:12 PST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Timothy Hatcher
Created:
2019-02-04 11:15:12 PST
Size:
1.98 KB
patch
obsolete
>Subversion Revision: 240798 >diff --git a/Source/WebKitLegacy/mac/ChangeLog b/Source/WebKitLegacy/mac/ChangeLog >index b5cbcd383b0fea7b814eab8174c2ab7621ba095c..42ab6e577e3267b35c52761e45e8eb5f72c3c1c2 100644 >--- a/Source/WebKitLegacy/mac/ChangeLog >+++ b/Source/WebKitLegacy/mac/ChangeLog >@@ -1,3 +1,14 @@ >+2019-02-04 Timothy Hatcher <timothy@apple.com> >+ >+ Add WebView SPI to temporarily force light or dark appearance on a page. >+ https://bugs.webkit.org/show_bug.cgi?id=194230 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * WebView/WebView.mm: >+ (-[WebView _setUseDarkAppearance:]): Added. >+ * WebView/WebViewPrivate.h: >+ > 2019-01-28 Devin Rousso <drousso@apple.com> > > Web Inspector: provide a way to edit page WebRTC settings on a remote target >diff --git a/Source/WebKitLegacy/mac/WebView/WebView.mm b/Source/WebKitLegacy/mac/WebView/WebView.mm >index 663093439161d2848e5d29e6fd9568918e8d852d..1ade502aeb29c4b4d3136858e533bb49f0683cf7 100644 >--- a/Source/WebKitLegacy/mac/WebView/WebView.mm >+++ b/Source/WebKitLegacy/mac/WebView/WebView.mm >@@ -2487,6 +2487,13 @@ - (WebView *)_openNewWindowWithRequest:(NSURLRequest *)request > return newWindowWebView; > } > >+- (void)_setUseDarkAppearance:(BOOL)useDarkAppearance >+{ >+ if (!_private || !_private->page) >+ return; >+ _private->page->setUseDarkAppearance(useDarkAppearance); >+} >+ > + (void)_setIconLoadingEnabled:(BOOL)enabled > { > iconLoadingEnabled = enabled; >diff --git a/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h b/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h >index 299fe677f2a7a6bdb3632e3b55f8f46cccfac9c8..60d1088fdff37797f98e0a204a53d011d536964e 100644 >--- a/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h >+++ b/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h >@@ -322,6 +322,8 @@ typedef enum { > + (void)_setIconLoadingEnabled:(BOOL)enabled; > + (BOOL)_isIconLoadingEnabled; > >+- (void)_setUseDarkAppearance:(BOOL)useDarkAppearance; >+ > - (WebInspector *)inspector; > > #if ENABLE_REMOTE_INSPECTOR
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 194230
:
361075
|
361088