Changeset 87168 in webkit


Ignore:
Timestamp:
May 24, 2011 10:43:55 AM (13 years ago)
Author:
tony@chromium.org
Message:

2011-05-24 Tony Chang <tony@chromium.org>

Reviewed by James Robinson.

fix render overflow computation for input type=range
https://bugs.webkit.org/show_bug.cgi?id=61132

  • fast/forms/slider-hit-testing-expected.txt: Added.
  • fast/forms/slider-hit-testing.html: Added.

2011-05-24 Tony Chang <tony@chromium.org>

Reviewed by James Robinson.

fix render overflow computation for input type=range
https://bugs.webkit.org/show_bug.cgi?id=61132

Test: fast/forms/slider-hit-testing.html

We need to clear m_overflow otherwise we use the first
size of the slider for hit testing (i.e., changes to the size
cause problems). This only shows up if the thumb isn't contained
in the bounds of the slider. Making the range have a smaller height
than the thumb shows the bug.

  • rendering/RenderSlider.cpp: (WebCore::RenderSlider::layout): Clear the overflow during layout

so we re-compute the overflow based on the current size of the
slider.

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r87165 r87168  
     12011-05-24  Tony Chang  <tony@chromium.org>
     2
     3        Reviewed by James Robinson.
     4
     5        fix render overflow computation for input type=range
     6        https://bugs.webkit.org/show_bug.cgi?id=61132
     7
     8        * fast/forms/slider-hit-testing-expected.txt: Added.
     9        * fast/forms/slider-hit-testing.html: Added.
     10
    1112011-05-24  Kenneth Russell  <kbr@google.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r87167 r87168  
     12011-05-24  Tony Chang  <tony@chromium.org>
     2
     3        Reviewed by James Robinson.
     4
     5        fix render overflow computation for input type=range
     6        https://bugs.webkit.org/show_bug.cgi?id=61132
     7
     8        Test: fast/forms/slider-hit-testing.html
     9
     10        We need to clear m_overflow otherwise we use the first
     11        size of the slider for hit testing (i.e., changes to the size
     12        cause problems).  This only shows up if the thumb isn't contained
     13        in the bounds of the slider.  Making the range have a smaller height
     14        than the thumb shows the bug.
     15
     16        * rendering/RenderSlider.cpp:
     17        (WebCore::RenderSlider::layout): Clear the overflow during layout
     18            so we re-compute the overflow based on the current size of the
     19            slider.
     20
    1212011-05-24  Alok Priyadarshi  <alokp@chromium.org>
    222
  • trunk/Source/WebCore/rendering/RenderSlider.cpp

    r84394 r87168  
    154154    updateLayerTransform();
    155155
     156    m_overflow.clear();
     157
    156158    if (thumb) {
    157159        if (oldSize != size())
Note: See TracChangeset for help on using the changeset viewer.