[iOS] Color picker should have a border when presented in a popover
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Aug 2018 17:26:17 +0000 (17:26 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Aug 2018 17:26:17 +0000 (17:26 +0000)
commit7b071e5efcbfc28c0ab607f9360a81bae7a8233f
tree0d8ab3bd38e9fcad775f16bf8fd8507962d29dce
parentadbb0962d06c98ab19e2116f5408c409ec9b366a
[iOS] Color picker should have a border when presented in a popover
https://bugs.webkit.org/show_bug.cgi?id=188207

Patch by Aditya Keerthi <akeerthi@apple.com> on 2018-08-01
Reviewed by Wenson Hsieh.

The color picker should have a border when presented in a popover. This matches
the behavior of color pickers in other parts of iOS.

Since the popover will resize its view to fill its size, we first place the
color picker in a container view. The container view can then fill the popover,
while the smaller color picker is centered in it's container - creating the
appearance of a border.

* UIProcess/ios/forms/WKFormColorControl.mm:
(-[WKColorPopover initWithView:]):
* UIProcess/ios/forms/WKFormColorPicker.mm:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234461 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/ios/forms/WKFormColorControl.mm
Source/WebKit/UIProcess/ios/forms/WKFormColorPicker.mm