Changeset 90436 in webkit


Ignore:
Timestamp:
Jul 5, 2011 10:29:48 PM (13 years ago)
Author:
tkent@chromium.org
Message:

2011-06-29 Kent Tamura <tkent@chromium.org>

Reviewed by Alexey Proskuryakov.

[Mac] REGRESSION (r88415): Range slider doesn't have focus appearance.
https://bugs.webkit.org/show_bug.cgi?id=63573

  • fast/forms/input-appearance-range.html: Give a focus on a slider to check focus appearance.
  • platform/chromium/test_expectations.txt:
  • platform/mac/fast/forms/input-appearance-range-expected.png:

2011-06-29 Kent Tamura <tkent@chromium.org>

Reviewed by Alexey Proskuryakov.

[Mac] REGRESSION (r88415): Range slider doesn't have focus appearance.
https://bugs.webkit.org/show_bug.cgi?id=63573

  • rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintSliderThumb): Need to pass the RenderObject of the owner <input> because updateFocusedState() checks the outline style of the specified renderer, and we'd like to make a slider thumb reflect the owner focus style.
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r90413 r90436  
     12011-06-29  Kent Tamura  <tkent@chromium.org>
     2
     3        Reviewed by Alexey Proskuryakov.
     4
     5        [Mac] REGRESSION (r88415): Range slider doesn't have focus appearance.
     6        https://bugs.webkit.org/show_bug.cgi?id=63573
     7
     8        * fast/forms/input-appearance-range.html:
     9          Give a focus on a slider to check focus appearance.
     10        * platform/chromium/test_expectations.txt:
     11        * platform/mac/fast/forms/input-appearance-range-expected.png:
     12
    1132011-07-05  Eric Seidel  <eric@webkit.org>
    214
  • trunk/LayoutTests/fast/forms/input-appearance-range.html

    r88757 r90436  
    33<!--
    44  You'll see
    5    - three horizontal sliders with various thumb positions.
    6    - a vertical slider
    7    - a slant slider
     5   - three horizontal sliders with various thumb positions
     6   - a vertical slider, and
     7   - a slant slider.
     8  The second slider has focus.
    89-->
    910
     
    1516
    1617<div><input type=range value=75 style="-webkit-transform: rotate(30deg)"></div>
     18
     19<script>
     20document.getElementsByTagName('input')[1].focus();
     21</script>
    1722</body>
  • trunk/LayoutTests/platform/chromium/test_expectations.txt

    r90396 r90436  
    39463946BUGCR87009 : fast/filesystem/async-operations.html = PASS CRASH
    39473947
     3948// Test has been updated.  Need rebaseline.
     3949BUGWK63573 : fast/forms/input-appearance-range.html = IMAGE
     3950
    39483951// Strange scrollbar.
    39493952BUGWK63115 : fast/css/font-face-in-shadow-DOM.html = PASS IMAGE+TEXT
  • trunk/Source/WebCore/ChangeLog

    r90407 r90436  
     12011-06-29  Kent Tamura  <tkent@chromium.org>
     2
     3        Reviewed by Alexey Proskuryakov.
     4
     5        [Mac] REGRESSION (r88415): Range slider doesn't have focus appearance.
     6        https://bugs.webkit.org/show_bug.cgi?id=63573
     7
     8        * rendering/RenderThemeMac.mm:
     9        (WebCore::RenderThemeMac::paintSliderThumb):
     10        Need to pass the RenderObject of the owner <input> because
     11        updateFocusedState() checks the outline style of the specified
     12        renderer, and we'd like to make a slider thumb reflect the owner
     13        focus style.
     14
    1152011-07-05  Hans Wennborg  <hans@chromium.org>
    216
  • trunk/Source/WebCore/rendering/RenderThemeMac.mm

    r90202 r90436  
    13191319    updateActiveState(sliderThumbCell, o);
    13201320    updateEnabledState(sliderThumbCell, o);
    1321     updateFocusedState(sliderThumbCell, o);
     1321    updateFocusedState(sliderThumbCell, (o->node() && o->node()->focusDelegate()->renderer()) ? o->node()->focusDelegate()->renderer() : o);
    13221322
    13231323    // Update the pressed state using the NSCell tracking methods, since that's how NSSliderCell keeps track of it.
Note: See TracChangeset for help on using the changeset viewer.