⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 179796 in webkit


Ignore:
Timestamp:
Feb 8, 2015, 12:02:48 AM (12 years ago)
Author:
Chris Fleizach
Message:

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.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r179794 r179796  
     12015-02-07  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: The input element with type="search" has no default focus outline
     4        https://bugs.webkit.org/show_bug.cgi?id=140326
     5
     6        Reviewed by Darin Adler.
     7
     8        * fast/css/focus-ring-exists-for-search-field.html: Added.
     9        * platform/mac/fast/css/focus-ring-exists-for-search-field-expected.png: Added.
     10        * platform/mac/fast/css/focus-ring-exists-for-search-field-expected.txt: Added.
     11
    1122015-02-07  Alexey Proskuryakov  <ap@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r179792 r179796  
     12015-02-07  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: The input element with type="search" has no default focus outline
     4        https://bugs.webkit.org/show_bug.cgi?id=140326
     5
     6        Reviewed by Darin Adler.
     7
     8        The platform RenderTheme takes care of the search field, and that code
     9        was missing a check for whether the element was focused.
     10
     11        Test: fast/css/focus-ring-exists-for-search-field.html
     12
     13        * rendering/RenderThemeMac.mm:
     14        (WebCore::RenderThemeMac::paintSearchField):
     15
    1162015-02-07  Tim Horton  <timothy_horton@apple.com>
    217
  • trunk/Source/WebCore/rendering/RenderThemeMac.mm

    r179050 r179796  
    15731573    [search setSearchButtonCell:nil];
    15741574
    1575     [search drawWithFrame:NSRect(unzoomedRect) inView:documentViewFor(o)];
     1575    NSView *documentView = documentViewFor(o);
     1576    [search drawWithFrame:NSRect(unzoomedRect) inView:documentView];
    15761577
    15771578    [search setControlView:nil];
    15781579    [search resetSearchButtonCell];
    15791580
     1581    if (isFocused(o) && o.style().outlineStyleIsAuto()) {
     1582        if (wkDrawCellFocusRingWithFrameAtTime(search, NSRect(unzoomedRect), documentView, std::numeric_limits<double>::max()))
     1583            o.document().page()->focusController().setFocusedElementNeedsRepaint();
     1584    }
     1585   
    15801586    return false;
    15811587}
Note: See TracChangeset for help on using the changeset viewer.