Changeset 189258 in webkit


Ignore:
Timestamp:
Sep 2, 2015 1:03:34 PM (9 years ago)
Author:
Chris Fleizach
Message:

AX: WebKit does not expose max/min value of <progress> element
https://bugs.webkit.org/show_bug.cgi?id=148707

Reviewed by Mario Sanchez Prada.

Source/WebCore:

Allow native progress indicator elements to report min/max values by rewriting special
case code for ARIA progress bars.

Test: accessibility/mac/progress-element-min-max.html

  • accessibility/mac/WebAccessibilityObjectWrapperMac.mm:

(-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):

LayoutTests:

  • accessibility/mac/progress-element-min-max-expected.txt: Added.
  • accessibility/mac/progress-element-min-max.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r189254 r189258  
     12015-09-02  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: WebKit does not expose max/min value of <progress> element
     4        https://bugs.webkit.org/show_bug.cgi?id=148707
     5
     6        Reviewed by Mario Sanchez Prada.
     7
     8        * accessibility/mac/progress-element-min-max-expected.txt: Added.
     9        * accessibility/mac/progress-element-min-max.html: Added.
     10
    1112015-09-01  Dean Jackson  <dino@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r189255 r189258  
     12015-09-02  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: WebKit does not expose max/min value of <progress> element
     4        https://bugs.webkit.org/show_bug.cgi?id=148707
     5
     6        Reviewed by Mario Sanchez Prada.
     7
     8        Allow native progress indicator elements to report min/max values by rewriting special
     9        case code for ARIA progress bars.
     10
     11        Test: accessibility/mac/progress-element-min-max.html
     12
     13        * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
     14        (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
     15
    1162015-09-02  Hyemi Shin  <hyemi.sin@samsung.com>
    217
  • trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm

    r189182 r189258  
    25722572    if ([attributeName isEqualToString: NSAccessibilityMinValueAttribute]) {
    25732573        // Indeterminate progress indicator should return 0.
    2574         if (m_object->isProgressIndicator() && !m_object->hasAttribute(aria_valuenowAttr))
     2574        if (m_object->ariaRoleAttribute() == ProgressIndicatorRole && !m_object->hasAttribute(aria_valuenowAttr))
    25752575            return @0;
    25762576        return [NSNumber numberWithFloat:m_object->minValueForRange()];
     
    25792579    if ([attributeName isEqualToString: NSAccessibilityMaxValueAttribute]) {
    25802580        // Indeterminate progress indicator should return 0.
    2581         if (m_object->isProgressIndicator() && !m_object->hasAttribute(aria_valuenowAttr))
     2581        if (m_object->ariaRoleAttribute() == ProgressIndicatorRole && !m_object->hasAttribute(aria_valuenowAttr))
    25822582            return @0;
    25832583        return [NSNumber numberWithFloat:m_object->maxValueForRange()];
Note: See TracChangeset for help on using the changeset viewer.