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

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

Issue 2713193003: Added a quick heuristic to determine which objects are the target of in-page links and stop ignorin… (Closed)
Patch Set: Fixed Android test. Created 3 years, 9 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
Index: third_party/WebKit/Source/modules/accessibility/AXObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
index 1671402dcd5fb2400ead7a92e9c4bf9a26b00e83..44c89bf2398c4a09ce46638b42e2746fc71473a0 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
@@ -142,6 +142,7 @@ const InternalRoleEntry internalRoles[] = {
{AbbrRole, "Abbr"},
{AlertDialogRole, "AlertDialog"},
{AlertRole, "Alert"},
+ {AnchorRole, "Anchor"},
{AnnotationRole, "Annotation"},
{ApplicationRole, "Application"},
{ArticleRole, "Article"},
@@ -1719,6 +1720,7 @@ bool AXObject::includesARIAWidgetRole(const String& role) {
bool AXObject::nameFromContents() const {
switch (roleValue()) {
+ case AnchorRole:
case ButtonRole:
case CheckBoxRole:
case DirectoryRole:

Powered by Google App Engine
This is Rietveld 408576698