Changeset 164423 in webkit


Ignore:
Timestamp:
Feb 20, 2014 2:24:14 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

AX: Children Nodes for Canvas objects are not equal to Render Objects.
https://bugs.webkit.org/show_bug.cgi?id=123568

Patch by Artur Moryc <a.moryc@samsung.com> on 2014-02-20
Reviewed by Chris Fleizach.

Source/WebCore:

There is a difference in children nodes taken into account for RenderObject
and for NodeObject types. There is a problem with text nodes that are
focusable for EFL/GTK and therefore are not filtered out in the test like it
happens for the MAC port. Text nodes are eliminated in the
AccessibilityRenderObject::computeAccessibilityIsIgnored() method. The same
approach has been applied to the NodeObject to eliminate text nodes.

Covered by existing tests.

  • accessibility/AccessibilityNodeObject.cpp:

(WebCore::AccessibilityNodeObject::computeAccessibilityIsIgnored):

LayoutTests:

The canvas-accessibilitynodeobject.html test is not failing anymore.

  • platform/efl-wk1/TestExpectations:
  • platform/efl-wk2/TestExpectations:
  • platform/gtk/TestExpectations:
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r164418 r164423  
     12014-02-20  Artur Moryc  <a.moryc@samsung.com>
     2
     3        AX: Children Nodes for Canvas objects are not equal to Render Objects.
     4        https://bugs.webkit.org/show_bug.cgi?id=123568
     5
     6        Reviewed by Chris Fleizach.
     7
     8        The canvas-accessibilitynodeobject.html test is not failing anymore.
     9
     10        * platform/efl-wk1/TestExpectations:
     11        * platform/efl-wk2/TestExpectations:
     12        * platform/gtk/TestExpectations:
     13
    1142014-02-20  Frédéric Wang  <fred.wang@free.fr>
    215
  • trunk/LayoutTests/platform/efl-wk1/TestExpectations

    r164029 r164423  
    107107webkit.org/b/111991 accessibility/aria-text-role.html [ Failure ]
    108108webkit.org/b/111992 accessibility/aria-used-on-image-maps.html [ Failure ]
    109 webkit.org/b/111994 accessibility/canvas-accessibilitynodeobject.html [ Failure ]
    110109webkit.org/b/111996 accessibility/canvas-fallback-content-2.html [ Failure ]
    111110webkit.org/b/111999 accessibility/disabled-controls-not-focusable.html [ Failure ]
  • trunk/LayoutTests/platform/efl-wk2/TestExpectations

    r164291 r164423  
    265265webkit.org/b/111988 accessibility/aria-readonly.html [ Failure ]
    266266webkit.org/b/111991 accessibility/aria-text-role.html [ Failure ]
    267 webkit.org/b/111994 accessibility/canvas-accessibilitynodeobject.html [ Failure ]
    268267webkit.org/b/111996 accessibility/canvas-fallback-content-2.html [ Failure ]
    269268webkit.org/b/111999 accessibility/disabled-controls-not-focusable.html [ Failure ]
  • trunk/LayoutTests/platform/gtk/TestExpectations

    r164101 r164423  
    12501250webkit.org/b/91319 css2.1/20110323/vertical-align-boxes-001.htm [ ImageOnlyFailure ]
    12511251
    1252 webkit.org/b/92100 accessibility/canvas-accessibilitynodeobject.html [ Failure ]
    1253 
    12541252webkit.org/b/93976 fast/css-generated-content/quotes-lang.html [ ImageOnlyFailure ]
    12551253
  • trunk/Source/WebCore/ChangeLog

    r164422 r164423  
     12014-02-20  Artur Moryc  <a.moryc@samsung.com>
     2
     3        AX: Children Nodes for Canvas objects are not equal to Render Objects.
     4        https://bugs.webkit.org/show_bug.cgi?id=123568
     5
     6        Reviewed by Chris Fleizach.
     7
     8        There is a difference in children nodes taken into account for RenderObject
     9        and for NodeObject types. There is a problem with text nodes that are
     10        focusable for EFL/GTK and therefore are not filtered out in the test like it
     11        happens for the MAC port. Text nodes are eliminated in the
     12        AccessibilityRenderObject::computeAccessibilityIsIgnored() method. The same
     13        approach has been applied to the NodeObject to eliminate text nodes.
     14
     15        Covered by existing tests.
     16
     17        * accessibility/AccessibilityNodeObject.cpp:
     18        (WebCore::AccessibilityNodeObject::computeAccessibilityIsIgnored):
     19
    1202014-02-20  Zan Dobersek  <zdobersek@igalia.com>
    221
  • trunk/Source/WebCore/accessibility/AccessibilityNodeObject.cpp

    r163725 r164423  
    429429            return true;
    430430    }
    431    
     431
     432    AccessibilityObjectInclusion decision = defaultObjectInclusion();
     433    if (decision == IncludeObject)
     434        return false;
     435    if (decision == IgnoreObject)
     436        return true;
    432437    // If this element is within a parent that cannot have children, it should not be exposed.
    433438    if (isDescendantOfBarrenParent())
Note: See TracChangeset for help on using the changeset viewer.