Changeset 43907 in webkit


Ignore:
Timestamp:
May 20, 2009 7:33:19 AM (15 years ago)
Author:
xan@webkit.org
Message:

2009-05-20 Xan Lopez <xlopez@igalia.com>

Reviewed by Jan Alonzo.

https://bugs.webkit.org/show_bug.cgi?id=25414
[GTK] ROLE_PANEL should not be used for paragraphs and list items.

Implement Atk paragraph role for paragraph elements.

  • accessibility/gtk/AccessibilityObjectWrapperAtk.cpp: (webkit_accessible_get_role):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r43906 r43907  
     12009-05-20  Xan Lopez  <xlopez@igalia.com>
     2
     3        Reviewed by Jan Alonzo.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=25414
     6        [GTK] ROLE_PANEL should not be used for paragraphs and list items.
     7
     8        Implement Atk paragraph role for paragraph elements.
     9
     10        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
     11        (webkit_accessible_get_role):
     12
    1132009-05-20  Eric Seidel  <eric@webkit.org>
    214
  • trunk/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp

    r43900 r43907  
    4242#include "Frame.h"
    4343#include "FrameView.h"
     44#include "HTMLNames.h"
    4445#include "IntRect.h"
    4546#include "NotImplemented.h"
     
    269270        return ATK_ROLE_UNKNOWN;
    270271
     272    // WebCore does not know about paragraph role
     273    Node* node = static_cast<AccessibilityRenderObject*>(AXObject)->renderer()->node();
     274    if (node && node->hasTagName(HTMLNames::pTag))
     275        return ATK_ROLE_PARAGRAPH;
     276
    271277    // Note: Why doesn't WebCore have a password field for this
    272278    if (AXObject->isPasswordField())
Note: See TracChangeset for help on using the changeset viewer.