<rdar://problem/5908446> AX: webkit needs to return blockquote information for all...
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 May 2008 20:55:49 +0000 (20:55 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 May 2008 20:55:49 +0000 (20:55 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@33385 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/page/mac/AccessibilityObjectWrapper.mm

index 3095ceb..a9e8934 100644 (file)
@@ -1,3 +1,13 @@
+2008-05-13  chris fleizach  <cfleizach@apple.com>
+
+        Beth Dakin
+
+        <rdar://problem/5908446> AX: webkit needs to return blockquote information for all AX objects, not just in AXTextMarker info
+
+        * page/mac/AccessibilityObjectWrapper.mm:
+        (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
+        (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
+
 2008-05-13  Alexey Proskuryakov  <ap@webkit.org>
 
         Reviewed by John Sullivan.
index 2ccca40..02bd13a 100644 (file)
@@ -537,6 +537,7 @@ static WebCoreTextMarkerRange* textMarkerRangeFromVisiblePositions(VisiblePositi
                       @"AXVisited",
                       NSAccessibilityLinkedUIElementsAttribute,
                       NSAccessibilitySelectedAttribute,
+                      @"AXBlockQuoteLevel",
                       nil];
     }
     if (anchorAttrs == nil) {
@@ -963,6 +964,9 @@ static NSString* roleValueToNSString(AccessibilityRole value)
             return textMarkerForVisiblePosition(startOfDocument(renderer->document()));
         if ([attributeName isEqualToString: @"AXEndTextMarker"])
             return textMarkerForVisiblePosition(endOfDocument(renderer->document()));
+
+        if ([attributeName isEqualToString: @"AXBlockQuoteLevel"])
+            return [NSNumber numberWithInt:blockquoteLevel(renderer)];
     }
     
     if ([attributeName isEqualToString: NSAccessibilityLinkedUIElementsAttribute]) {