Changeset 240939 in webkit


Ignore:
Timestamp:
Feb 4, 2019 1:03:20 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Source/WebCore:
When performing Increment or Decrement on sliders, check to see if the slider is disabled.
https://bugs.webkit.org/show_bug.cgi?id=173497

Patch by Eric Liang <ericliang@apple.com> on 2019-02-04
Reviewed by Chris Fleizach.

Test: accessibility/set-value-not-work-for-disabled-sliders.html

  • accessibility/AccessibilityNodeObject.cpp:

(WebCore::AccessibilityNodeObject::alterSliderValue):

LayoutTests:
Check if slider value changed after calling AX Increment or Decrement on disabled sliders.
https://bugs.webkit.org/show_bug.cgi?id=193497

Patch by Eric Liang <ericliang@apple.com> on 2019-02-04
Reviewed by Chris Fleizach.

  • accessibility/set-value-not-work-for-disabled-sliders.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r240921 r240939  
     12019-02-04  Eric Liang  <ericliang@apple.com>
     2
     3        Check if slider value changed after calling AX Increment or Decrement on disabled sliders.
     4        https://bugs.webkit.org/show_bug.cgi?id=193497
     5
     6        Reviewed by Chris Fleizach.
     7
     8        * accessibility/set-value-not-work-for-disabled-sliders.html: Added.
     9
    1102019-02-04  Frederic Wang  <fwang@igalia.com>
    211
  • trunk/Source/WebCore/ChangeLog

    r240931 r240939  
     12019-02-04  Eric Liang  <ericliang@apple.com>
     2
     3        When performing Increment or Decrement on sliders, check to see if the slider is disabled.
     4        https://bugs.webkit.org/show_bug.cgi?id=173497
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Test: accessibility/set-value-not-work-for-disabled-sliders.html
     9
     10        * accessibility/AccessibilityNodeObject.cpp:
     11        (WebCore::AccessibilityNodeObject::alterSliderValue):
     12
    1132019-02-04  Sihui Liu  <sihui_liu@apple.com>
    214
  • trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp

    r240205 r240939  
    10641064    if (roleValue() != AccessibilityRole::Slider)
    10651065        return;
     1066   
     1067    auto element = this->element();
     1068    if (!element || element->isDisabledFormControl())
     1069        return;
    10661070
    10671071    if (!getAttribute(stepAttr).isEmpty())
Note: See TracChangeset for help on using the changeset viewer.