• tkent@chromium.org's avatar
    2011-01-25 Kent Tamura <tkent@chromium.org> · 1b27cba5
    tkent@chromium.org authored
            Reviewed by Dimitri Glazkov.
    
            Range and number inputs should reject increment and decrement by
            keyboard or mouse wheel if they are disabled or read-only
            https://bugs.webkit.org/show_bug.cgi?id=53151
    
            Add checks for 'disabled' and 'readOnly'.
    
            * fast/forms/input-number-keyoperation-expected.txt:
            * fast/forms/input-number-wheel-expected.txt:
            * fast/forms/range-keyoperation-expected.txt:
            * fast/forms/range-keyoperation.html:
            * fast/forms/script-tests/input-number-keyoperation.js:
            * fast/forms/script-tests/input-number-wheel.js:
    2011-01-25  Kent Tamura  <tkent@chromium.org>
    
            Reviewed by Dimitri Glazkov.
    
            Range and number inputs should reject increment and decrement by
            keyboard or mouse wheel if they are disabled or read-only
            https://bugs.webkit.org/show_bug.cgi?id=53151
    
            * html/RangeInputType.cpp:
            (WebCore::RangeInputType::handleKeydownEvent): Check disabled() and readOnly().
            * html/TextFieldInputType.cpp:
            (WebCore::TextFieldInputType::handleKeydownEventForSpinButton): ditto.
            (WebCore::TextFieldInputType::handleWheelEventForSpinButton): ditto.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1b27cba5
RangeInputType.cpp 8.17 KB