Let clients override _WKThumbnailView's background color
authorrmondello@apple.com <rmondello@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jul 2018 01:19:40 +0000 (01:19 +0000)
committerrmondello@apple.com <rmondello@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jul 2018 01:19:40 +0000 (01:19 +0000)
commitf373351f745163557bfd0c4a89569fe7b9b05c59
tree27d6efe0e484568437b1390aec077a959bf2fb8a
parent8722fb3fce0eb9a4ea5c96cf37706f8b3c3bd538
Let clients override _WKThumbnailView's background color

https://bugs.webkit.org/show_bug.cgi?id=187788

Reviewed by Tim Horton.

* UIProcess/API/Cocoa/_WKThumbnailView.h: Declare a property.
* UIProcess/API/Cocoa/_WKThumbnailView.mm: Define an ivar.
(-[_WKThumbnailView updateLayer]): Consult the background color.
(-[_WKThumbnailView setOverrideBackgroundColor:]): Notably, call -updateLayer.
(-[_WKThumbnailView overrideBackgroundColor]): Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233945 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/API/Cocoa/_WKThumbnailView.h
Source/WebKit/UIProcess/API/Cocoa/_WKThumbnailView.mm