[Webkit-unassigned] [Bug 23399] AX: some buttons don't expose AXPress as an action
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 16 20:57:59 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=23399
hyatt at apple.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #26820| |review+
Flag| |
------- Comment #2 from hyatt at apple.com 2009-01-16 20:57 PDT -------
(From update of attachment 26820)
> 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
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list