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

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

Issue 1435113003: Make use of new AX name calc in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ChromeVox and Automation API tests Created 5 years, 1 month 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/AXObjectCacheImpl.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
index c786f17c198497eaaafc8c3f90c5c45753ee8e70..9e66b4195e7a8516c9a609a82c35b8720ff6c2c7 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
@@ -1313,34 +1313,7 @@ String AXObjectCacheImpl::computedNameForNode(Node* node)
if (!obj)
return "";
- String title = obj->deprecatedTitle();
-
- String titleUIText;
- if (title.isEmpty()) {
- AXObject* titleUIElement = obj->deprecatedTitleUIElement();
- if (titleUIElement) {
- titleUIText = titleUIElement->deprecatedTextUnderElement();
- if (!titleUIText.isEmpty())
- return titleUIText;
- }
- }
-
- String description = obj->deprecatedAccessibilityDescription();
- if (!description.isEmpty())
- return description;
-
- if (!title.isEmpty())
- return title;
-
- String placeholder;
- if (isHTMLInputElement(node)) {
- HTMLInputElement* element = toHTMLInputElement(node);
- placeholder = element->strippedPlaceholder();
- if (!placeholder.isEmpty())
- return placeholder;
- }
-
- return String();
+ return obj->computedName();
}
void AXObjectCacheImpl::onTouchAccessibilityHover(const IntPoint& location)

Powered by Google App Engine
This is Rietveld 408576698