[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.16-1409-g5afdf4d
cfleizach at apple.com
cfleizach at apple.com
Thu Dec 3 13:21:20 UTC 2009
The following commit has been merged in the webkit-1.1 branch:
commit dbed80efb515ae12b583273246b8da6bdb9e0ae9
Author: cfleizach at apple.com <cfleizach at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Wed Oct 28 03:39:26 2009 +0000
WAI-ARIA: add support for 'presentation' role
https://bugs.webkit.org/show_bug.cgi?id=30806
Reviewed by Adele Peterson.
WebCore:
Test: accessibility/aria-presentational-role.html
* accessibility/AccessibilityObject.h:
(WebCore::):
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
(WebCore::RoleEntry::):
LayoutTests:
* accessibility/aria-presentational-role-expected.txt: Added.
* accessibility/aria-presentational-role.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50196 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 64a503d..e6e062e 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,5 +1,15 @@
2009-10-27 Chris Fleizach <cfleizach at apple.com>
+ Reviewed by Adele Peterson.
+
+ WAI-ARIA: add support for 'presentation' role
+ https://bugs.webkit.org/show_bug.cgi?id=30806
+
+ * accessibility/aria-presentational-role-expected.txt: Added.
+ * accessibility/aria-presentational-role.html: Added.
+
+2009-10-27 Chris Fleizach <cfleizach at apple.com>
+
Reviewed by Darin Adler.
ARIA menu/menu item need AXRoleDescription
diff --git a/LayoutTests/accessibility/aria-presentational-role-expected.txt b/LayoutTests/accessibility/aria-presentational-role-expected.txt
new file mode 100644
index 0000000..17fb1b8
--- /dev/null
+++ b/LayoutTests/accessibility/aria-presentational-role-expected.txt
@@ -0,0 +1,12 @@
+Link and text
+
+This tests that the aria 'presentation' role works by successfully removing the element from the AX tree.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS firstChild.role is 'AXRole: AXLink'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/accessibility/aria-presentational-role.html b/LayoutTests/accessibility/aria-presentational-role.html
new file mode 100644
index 0000000..2e3632f
--- /dev/null
+++ b/LayoutTests/accessibility/aria-presentational-role.html
@@ -0,0 +1,37 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href="../fast/js/resources/js-test-style.css">
+<script>
+var successfullyParsed = false;
+</script>
+<script src="../fast/js/resources/js-test-pre.js"></script>
+</head>
+<body id="body">
+
+<h3 role="presentation">
+<a href="#">Link</a> and text
+</h3>
+
+<p id="description"></p>
+<div id="console"></div>
+
+<script>
+
+ description("This tests that the aria 'presentation' role works by successfully removing the element from the AX tree.");
+
+ if (window.accessibilityController) {
+
+ var body = document.getElementById("body");
+ body.focus();
+
+ var firstChild = accessibilityController.focusedElement.childAtIndex(0);
+ shouldBe("firstChild.role", "'AXRole: AXLink'");
+ }
+
+ successfullyParsed = true;
+</script>
+
+<script src="../fast/js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 858c65d..2460d17 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,5 +1,20 @@
2009-10-27 Chris Fleizach <cfleizach at apple.com>
+ Reviewed by Adele Peterson.
+
+ WAI-ARIA: add support for 'presentation' role
+ https://bugs.webkit.org/show_bug.cgi?id=30806
+
+ Test: accessibility/aria-presentational-role.html
+
+ * accessibility/AccessibilityObject.h:
+ (WebCore::):
+ * accessibility/AccessibilityRenderObject.cpp:
+ (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
+ (WebCore::RoleEntry::):
+
+2009-10-27 Chris Fleizach <cfleizach at apple.com>
+
Reviewed by Darin Adler.
ARIA menu/menu item need AXRoleDescription
diff --git a/WebCore/accessibility/AccessibilityObject.h b/WebCore/accessibility/AccessibilityObject.h
index 6211293..f822df9 100644
--- a/WebCore/accessibility/AccessibilityObject.h
+++ b/WebCore/accessibility/AccessibilityObject.h
@@ -160,6 +160,7 @@ enum AccessibilityRole {
DefinitionListDefinitionRole,
AnnotationRole,
SliderThumbRole,
+ IgnoredRole,
// ARIA Grouping roles
LandmarkApplicationRole,
diff --git a/WebCore/accessibility/AccessibilityRenderObject.cpp b/WebCore/accessibility/AccessibilityRenderObject.cpp
index 4072541..65742fe 100644
--- a/WebCore/accessibility/AccessibilityRenderObject.cpp
+++ b/WebCore/accessibility/AccessibilityRenderObject.cpp
@@ -1272,6 +1272,9 @@ bool AccessibilityRenderObject::accessibilityIsIgnored() const
if (isPresentationalChildOfAriaRole())
return true;
+ if (roleValue() == IgnoredRole)
+ return true;
+
// ignore popup menu items because AppKit does
for (RenderObject* parent = m_renderer->parent(); parent; parent = parent->parent()) {
if (parent->isMenuList())
@@ -2282,6 +2285,7 @@ static const ARIARoleMap& createARIARoleMap()
{ "menuitemradio", MenuItemRole },
{ "note", DocumentNoteRole },
{ "navigation", LandmarkNavigationRole },
+ { "presentation", IgnoredRole },
{ "progressbar", ProgressIndicatorRole },
{ "radio", RadioButtonRole },
{ "radiogroup", RadioGroupRole },
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list