Changeset 50412 in webkit


Ignore:
Timestamp:
Nov 2, 2009 9:35:32 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-11-02 Joanmarie Diggs <joanmarie.diggs@gmail.com>

Reviewed by Jan Alonzo.

https://bugs.webkit.org/show_bug.cgi?id=30964
[Gtk] Implemment AtkDocument

Provides access to the reported content language.

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

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r50411 r50412  
     12009-11-02  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
     2
     3        Reviewed by Jan Alonzo.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=30964
     6        [Gtk] Implemment AtkDocument
     7
     8        Provides access to the reported content language.
     9
     10        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
     11        (webkit_accessible_document_get_locale):
     12
    1132009-11-02  Keishi Hattori  <casey.hattori@gmail.com>
    214
  • trunk/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp

    r50393 r50412  
    14281428static const gchar* webkit_accessible_document_get_locale(AtkDocument* document)
    14291429{
    1430     // FIXME: This needs to be implemented.
    1431     notImplemented();
     1430
     1431    // TODO: Should we fall back on lang xml:lang when the following comes up empty?
     1432    String language = static_cast<AccessibilityRenderObject*>(core(document))->language();
     1433    if (!language.isEmpty())
     1434        return returnString(language);
     1435
    14321436    return 0;
    14331437}
Note: See TracChangeset for help on using the changeset viewer.