Changeset 187170 in webkit


Ignore:
Timestamp:
Jul 22, 2015 11:47:12 AM (9 years ago)
Author:
Wenson Hsieh
Message:

Search fields render placeholder text improperly.
https://bugs.webkit.org/show_bug.cgi?id=147192
<rdar://problem/21901076>

Reviewed by Alexey Proskuryakov.

Due to changes in the way AppKit renders search inputs, we must now explicitly
set the placeholder text of a search input rendered using the Mac theme to be
an empty string when rendering the search input box (not including the actual
placeholder text).

  • rendering/RenderThemeMac.mm:

(WebCore::RenderThemeMac::setSearchCellState): Force the placeholder text of

the NSSearchFieldCell for the Mac theme to be an empty string.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r187168 r187170  
     12015-07-22  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Search fields render placeholder text improperly.
     4        https://bugs.webkit.org/show_bug.cgi?id=147192
     5        <rdar://problem/21901076>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        Due to changes in the way AppKit renders search inputs, we must now explicitly
     10        set the placeholder text of a search input rendered using the Mac theme to be
     11        an empty string when rendering the search input box (not including the actual
     12        placeholder text).
     13
     14        * rendering/RenderThemeMac.mm:
     15        (WebCore::RenderThemeMac::setSearchCellState): Force the placeholder text of
     16            the NSSearchFieldCell for the Mac theme to be an empty string.
     17
    1182015-07-22  Matthew Daiter  <mdaiter@apple.com>
    219
  • trunk/Source/WebCore/rendering/RenderThemeMac.mm

    r187095 r187170  
    16321632    NSSearchFieldCell* search = this->search();
    16331633
     1634    [search setPlaceholderString:@""];
    16341635    [search setControlSize:controlSizeForFont(o.style())];
    16351636
Note: See TracChangeset for help on using the changeset viewer.