~ubuntu-branches/ubuntu/lucid/webkit/lucid-updates

« back to all changes in this revision

Viewing changes to WebCore/accessibility/AccessibilityObject.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2010-01-06 21:25:06 UTC
  • mfrom: (1.2.6 upstream) (4.3.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100106212506-gd0czn4zrwf1j19l
* New upstream release
- adds basic Content-Encoding support, thanks to soup
  (Closes: #529271)
- fixes over-advertising content types as supported by
  the media player (Closes: #559420)
* debian/control:
- updated libsoup build requirement (>= 2.28.2)
* debian/libwebkit-1.0-2.symbols:
- updated with new symbols
* debian/copyright:
- updated information since 1.1.17
* Imported patch from https://bugs.webkit.org/show_bug.cgi?id=30623
- I am shipping this patch because I believe it is correct, it is the
  way to go, it fixes a race, and it needs testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
897
897
        { "region", DocumentRegionRole },
898
898
        { "row", RowRole },
899
899
        { "range", SliderRole },
 
900
        { "scrollbar", ScrollBarRole },
900
901
        { "search", LandmarkSearchRole },
901
902
        { "separator", SplitterRole },
902
903
        { "slider", SliderRole },
905
906
        { "tab", TabRole },
906
907
        { "tablist", TabListRole },
907
908
        { "tabpanel", TabPanelRole },
 
909
        { "text", StaticTextRole },
908
910
        { "textbox", TextAreaRole },
909
911
        { "timer", ApplicationTimerRole },
910
912
        { "toolbar", ToolbarRole },
911
913
        { "tooltip", UserInterfaceTooltipRole },
912
914
        { "tree", TreeRole },
 
915
        { "treegrid", TreeGridRole },
913
916
        { "treeitem", TreeItemRole }
914
917
    };
915
918
    ARIARoleMap* roleMap = new ARIARoleMap;
926
929
    static const ARIARoleMap* roleMap = createARIARoleMap();
927
930
    return roleMap->get(value);
928
931
}
 
932
 
 
933
bool AccessibilityObject::isInsideARIALiveRegion() const
 
934
{
 
935
    if (supportsARIALiveRegion())
 
936
        return true;
 
937
    
 
938
    for (AccessibilityObject* axParent = parentObject(); axParent; axParent = axParent->parentObject()) {
 
939
        if (axParent->supportsARIALiveRegion())
 
940
            return true;
 
941
    }
 
942
    
 
943
    return false;
 
944
}
 
945
 
 
946
bool AccessibilityObject::supportsARIALiveRegion() const
 
947
{
 
948
    const AtomicString& liveRegion = ariaLiveRegionStatus();
 
949
    return equalIgnoringCase(liveRegion, "polite") || equalIgnoringCase(liveRegion, "assertive");
 
950
}
 
951
 
929
952
    
930
953
} // namespace WebCore