Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXSVGRoot.cpp

Issue 1525793002: Fall back to title element text for SVG root text alternatives (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit for dmazzoni Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXSVGRoot.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/accessibility/AXSVGRoot.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXSVGRoot.cpp b/third_party/WebKit/Source/modules/accessibility/AXSVGRoot.cpp
index d94cf5705f6f9bbcb10cdb33666d8a9ed6593be2..1a9beeb8d02f3f0023f216165b6492eaf84e94ab 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXSVGRoot.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXSVGRoot.cpp
@@ -67,5 +67,19 @@ AXObject* AXSVGRoot::computeParent() const
return AXLayoutObject::computeParent();
}
+// SVG AAM 1.0 S8.2: the default role for an SVG root is "group".
+AccessibilityRole AXSVGRoot::determineAccessibilityRole()
+{
+ AccessibilityRole role = AXLayoutObject::determineAccessibilityRole();
+ if (role == UnknownRole)
+ role = GroupRole;
+ return role;
+}
+
+// SVG elements are only ignored when a generic element would also be ignored.
+bool AXSVGRoot::computeAccessibilityIsIgnored(IgnoredReasons* reasons) const
+{
+ return accessibilityIsIgnoredByDefault(reasons);
+}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXSVGRoot.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698