AR Badging on transparent thumbnail images makes the glyph look really dark
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Jun 2018 00:09:08 +0000 (00:09 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Jun 2018 00:09:08 +0000 (00:09 +0000)
commit3f4f0004ebda0074952dbdce3b9feeb97ea938ca
tree906900e4b32f8f4f3ed4af3f0b0bac2891d0bd09
parent31296ab239078406f09389d4f88f03cc42d47743
AR Badging on transparent thumbnail images makes the glyph look really dark
https://bugs.webkit.org/show_bug.cgi?id=186289
<rdar://problem/40627111>

Reviewed by Anders Carlsson.

Source/WebCore:

Clip out the shape for the drop shadow, so that it isn't visible if
there is transparent pixel data on top of it.

* rendering/RenderThemeIOS.mm:
(WebCore::RenderThemeIOS::paintSystemPreviewBadge):

LayoutTests:

Update the test to exercise more background colors. Include the results for the AR badge.

* system-preview/badge-expected.html: Added.
* system-preview/badge.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232487 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/system-preview/badge-expected.html [new file with mode: 0644]
LayoutTests/system-preview/badge.html
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderThemeIOS.mm