Skip to content
  • dmazzoni@google.com's avatar
    AX: support clickPoint in DRT for chromium · 28d49545
    dmazzoni@google.com authored
    https://bugs.webkit.org/show_bug.cgi?id=97359
    
    Reviewed by Chris Fleizach.
    
    Source/WebCore:
    
    When computing the accessible bounding box of an
    SVG root, be sure to call a method that uses transforms,
    otherwise an assertion fails.
    
    Newly unskipped tests: accessibility/svg-bounds.html and
    accessibility/svg-remote-element.html
    
    * accessibility/AccessibilityRenderObject.cpp:
    (WebCore::AccessibilityRenderObject::boundingBoxRect):
    
    Source/WebKit/chromium:
    
    Exposes the clickPoint accessibility method in WebAccessibilityObject.
    
    * public/WebAccessibilityObject.h:
    (WebAccessibilityObject):
    * src/WebAccessibilityObject.cpp:
    (WebKit::WebAccessibilityObject::clickPoint):
    (WebKit):
    
    Tools:
    
    Implement clickPointX, clickPointY, and elementAtPoint for Chromium, so that
    several more tests can pass.
    
    * DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.cpp:
    (WebTestRunner::AccessibilityUIElement::AccessibilityUIElement):
    (WebTestRunner::AccessibilityUIElement::clickPointXGetterCallback):
    (WebTestRunner):
    (WebTestRunner::AccessibilityUIElement::clickPointYGetterCallback):
    (WebTestRunner::AccessibilityUIElement::elementAtPointCallback):
    * DumpRenderTree/chromium/TestRunner/src/AccessibilityUIElementChromium.h:
    (AccessibilityUIElement):
    
    LayoutTests:
    
    Enable four more tests now that clickPointX, clickPointY,
    and elementAtPoint are implemented for Chromium.
    
    Minor fixes to two tests to make them more robust
    across platfoms and when run in parallel.
    
    * accessibility/svg-bounds.html: Updated
    * accessibility/svg-bounds-expected.txt: Added (made cross-platform
    * accessibility/svg-remote-element.html: Updated
    * accessibility/svg-remote-element-expected.txt: Added (made cross-platform)
    * platform/mac/accessibility/svg-bounds-expected.txt: Deleted
    * platform/mac/accessibility/svg-remote-element-expected.txt: Deleted
    * platform/chromium/TestExpectations: Updated
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138260 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    28d49545