Changeset 89006 in webkit


Ignore:
Timestamp:
Jun 15, 2011 10:12:24 PM (13 years ago)
Author:
keishi@webkit.org
Message:

2011-06-08 Keishi Hattori <keishi@webkit.org>

Reviewed by Kent Tamura.

Fix range element not updating when value attribute is set with JS
https://bugs.webkit.org/show_bug.cgi?id=61857

Test: fast/forms/range-set-attribute.html

  • html/RangeInputType.cpp: (WebCore::RangeInputType::minOrMaxAttributeChanged): Changed to only sanitize the value when the dirty value flag is true.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r89004 r89006  
     12011-06-08  Keishi Hattori  <keishi@webkit.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        Fix range element not updating when value attribute is set with JS
     6        https://bugs.webkit.org/show_bug.cgi?id=61857
     7
     8        * fast/forms/range-set-attribute-expected.txt: Added.
     9        * fast/forms/range-set-attribute.html: Added. Test to see if setting the value attribute of a
     10        range input element updates the value.
     11
    1122011-06-15  Kent Tamura  <tkent@chromium.org>
    213
  • trunk/Source/WebCore/ChangeLog

    r89005 r89006  
     12011-06-08  Keishi Hattori  <keishi@webkit.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        Fix range element not updating when value attribute is set with JS
     6        https://bugs.webkit.org/show_bug.cgi?id=61857
     7
     8        Test: fast/forms/range-set-attribute.html
     9
     10        * html/RangeInputType.cpp:
     11        (WebCore::RangeInputType::minOrMaxAttributeChanged): Changed to only sanitize the value when the dirty value flag is true.
     12
    1132011-06-15  Adam Barth  <abarth@webkit.org>
    214
  • trunk/Source/WebCore/html/RangeInputType.cpp

    r89004 r89006  
    252252
    253253    // Sanitize the value.
    254     element()->setValue(element()->value());
     254    if (element()->hasDirtyValue())
     255        element()->setValue(element()->value());
    255256    element()->setNeedsStyleRecalc();
    256257}
Note: See TracChangeset for help on using the changeset viewer.