Changeset 135416 in webkit


Ignore:
Timestamp:
Nov 21, 2012, 10:21:19 AM (12 years ago)
Author:
tony@chromium.org
Message:

Relayout the slider track when a data list is set
https://bugs.webkit.org/show_bug.cgi?id=102851

Reviewed by Ojan Vafai.

Previously, we would relayout the <input>. Once we fix bug 102352, this
causes the slider track to not relayout. It should relayout because it
draws the data list tick marks and needs to provide space for them.

No new tests, not testable until bug 102352 is fixed. Specifically,
fast/forms/datalist/update-range-with-datalist.html reveals the bug.

  • html/RangeInputType.cpp:

(WebCore::RangeInputType::listAttributeTargetChanged):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r135414 r135416  
     12012-11-21  Tony Chang  <tony@chromium.org>
     2
     3        Relayout the slider track when a data list is set
     4        https://bugs.webkit.org/show_bug.cgi?id=102851
     5
     6        Reviewed by Ojan Vafai.
     7
     8        Previously, we would relayout the <input>.  Once we fix bug 102352, this
     9        causes the slider track to not relayout.  It should relayout because it
     10        draws the data list tick marks and needs to provide space for them.
     11
     12        No new tests, not testable until bug 102352 is fixed. Specifically,
     13        fast/forms/datalist/update-range-with-datalist.html reveals the bug.
     14
     15        * html/RangeInputType.cpp:
     16        (WebCore::RangeInputType::listAttributeTargetChanged):
     17
    1182012-11-21  Kevin Ellis  <kevers@chromium.org>
    219
  • trunk/Source/WebCore/html/RangeInputType.cpp

    r133848 r135416  
    343343{
    344344    m_tickMarkValuesDirty = true;
    345     if (element()->renderer())
    346         element()->renderer()->setNeedsLayout(true);
     345    HTMLElement* sliderTrackElement = sliderTrackElementOf(element());
     346    if (sliderTrackElement->renderer())
     347        sliderTrackElement->renderer()->setNeedsLayout(true);
    347348}
    348349
Note: See TracChangeset for help on using the changeset viewer.