Bug 186289

Summary: AR Badging on transparent thumbnail images makes the glyph look really dark
Product: WebKit Reporter: Dean Jackson <dino>
Component: New BugsAssignee: Dean Jackson <dino>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch andersca: review+

Description Dean Jackson 2018-06-04 16:07:02 PDT
AR Badging on transparent thumbnail images makes the glyph look really dark
Comment 1 Dean Jackson 2018-06-04 16:37:19 PDT
<rdar://problem/40627111>
Comment 2 Dean Jackson 2018-06-04 16:40:16 PDT
Created attachment 341936 [details]
Patch
Comment 3 Anders Carlsson 2018-06-04 16:42:35 PDT
Comment on attachment 341936 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=341936&action=review

> Source/WebCore/rendering/RenderThemeIOS.mm:1874
> +    // Clip out the circle to only show the shadow

Please add a period to the end of the sentence.

> Source/WebCore/rendering/RenderThemeIOS.mm:1876
> +    CGRect imageRect = static_cast<CGRect>(rect);

Can this be CGRect imageRect { rect }; ?
Comment 4 Dean Jackson 2018-06-04 17:09:13 PDT
Comment on attachment 341936 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=341936&action=review

>> Source/WebCore/rendering/RenderThemeIOS.mm:1876
>> +    CGRect imageRect = static_cast<CGRect>(rect);
> 
> Can this be CGRect imageRect { rect }; ?

I didn't even need this. I can just autocast from IntRect.
Comment 5 Dean Jackson 2018-06-04 17:09:30 PDT
Committed r232487: <https://trac.webkit.org/changeset/232487>