AX: The input element with type="search" has no default focus outline
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 8 Feb 2015 08:02:48 +0000 (08:02 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 8 Feb 2015 08:02:48 +0000 (08:02 +0000)
commit316c606a48688a5b4f20de466b7071e8031492f6
treeaf3ffcf1612070608b31e794fb78fb118a38486e
parentde4bb69de5f719dc7fd34da30eae8022e043a8a5
AX: The input element with type="search" has no default focus outline
https://bugs.webkit.org/show_bug.cgi?id=140326

Reviewed by Darin Adler.

Source/WebCore:

The platform RenderTheme takes care of the search field, and that code
was missing a check for whether the element was focused.

Test: fast/css/focus-ring-exists-for-search-field.html

* rendering/RenderThemeMac.mm:
(WebCore::RenderThemeMac::paintSearchField):

LayoutTests:

* fast/css/focus-ring-exists-for-search-field.html: Added.
* platform/mac/fast/css/focus-ring-exists-for-search-field-expected.png: Added.
* platform/mac/fast/css/focus-ring-exists-for-search-field-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@179796 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/focus-ring-exists-for-search-field.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/css/focus-ring-exists-for-search-field-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/css/focus-ring-exists-for-search-field-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderThemeMac.mm