[webkit-reviews] review granted: [Bug 23399] AX: some buttons don't expose AXPress as an action : [Attachment 26820] Patch to make <button> show AXPress
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 16 20:57:59 PST 2009
Dave Hyatt <hyatt at apple.com> has granted 's request for review:
Bug 23399: AX: some buttons don't expose AXPress as an action
https://bugs.webkit.org/show_bug.cgi?id=23399
Attachment 26820: Patch to make <button> show AXPress
https://bugs.webkit.org/attachment.cgi?id=26820&action=review
------- Additional Comments from Dave Hyatt <hyatt at apple.com>
> Index: WebCore/ChangeLog
> ===================================================================
> --- WebCore/ChangeLog (revision 40003)
> +++ WebCore/ChangeLog (working copy)
> @@ -1,3 +1,15 @@
> +2009-01-16 Chris Fleizach <cfleizach at apple.com>
> +
> + Reviewed by NOBODY (OOPS!).
> +
> + AX: some buttons don't expose AXPress as an action
> + https://bugs.webkit.org/show_bug.cgi?id=23399
> +
> + Test: accessibility/button-press-action.html
> +
> + * page/AccessibilityRenderObject.cpp:
> + (WebCore::AccessibilityRenderObject::actionElement):
> +
> 2009-01-16 Chris Fleizach <cfleizach at apple.com>
>
> Reviewed by Oliver Hunt.
> Index: WebCore/page/AccessibilityRenderObject.cpp
> ===================================================================
> --- WebCore/page/AccessibilityRenderObject.cpp (revision 40003)
> +++ WebCore/page/AccessibilityRenderObject.cpp (working copy)
> @@ -491,10 +491,18 @@ Element* AccessibilityRenderObject::anch
>
> Element* AccessibilityRenderObject::actionElement() const
> {
> - if (m_renderer->element() &&
m_renderer->element()->hasTagName(inputTag)) {
> - HTMLInputElement* input =
static_cast<HTMLInputElement*>(m_renderer->element());
> - if (!input->disabled() && (isCheckboxOrRadio() ||
input->isTextButton()))
> - return input;
> + if (!m_renderer)
> + return 0;
> +
> + Node* node = m_renderer->element();
> + if (node) {
> + if (node->hasTagName(inputTag)) {
> + HTMLInputElement* input = static_cast<HTMLInputElement*>(node);
> + if (!input->disabled() && (isCheckboxOrRadio() ||
input->isTextButton()))
> + return input;
> + }
> + else if (node->hasTagName(buttonTag))
> + return static_cast<Element*>(node);
The else here should be on the same line as the previous }
r=me
More information about the webkit-reviews
mailing list