Draw border and correct icon for placeholder attachments
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 May 2016 23:48:17 +0000 (23:48 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 May 2016 23:48:17 +0000 (23:48 +0000)
commita40987555172e0bca9ce8923a07fdcf82dc922b8
treea47099e0e7fa55cdfe3cb04af618f2658c440633
parenta881b5f73013270a2614e0bf4a8b2bf397038ed4
Draw border and correct icon for placeholder attachments
https://bugs.webkit.org/show_bug.cgi?id=157495
rdar://problem/19982510

Reviewed by Anders Carlsson.

* Resources/AttachmentPlaceholder.png: Added.
* Resources/AttachmentPlaceholder@2x.png: Added.
* WebCore.xcodeproj/project.pbxproj:
* rendering/RenderThemeMac.mm:
(WebCore::attachmentPlaceholderBorderColor):
(WebCore::paintAttachmentIconPlaceholder):
(WebCore::paintAttachmentProgress):
(WebCore::paintAttachmentPlaceholderBorder):
(WebCore::RenderThemeMac::paintAttachment):
If progress is set, but set to 0, draw a dashed border around the attachment
and use the placeholder "download" artwork.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@200596 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/Resources/AttachmentPlaceholder.png [new file with mode: 0644]
Source/WebCore/Resources/AttachmentPlaceholder@2x.png [new file with mode: 0644]
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/rendering/RenderThemeMac.mm