Chromium Code Reviews| Index: Source/modules/accessibility/AXNodeObject.cpp |
| diff --git a/Source/modules/accessibility/AXNodeObject.cpp b/Source/modules/accessibility/AXNodeObject.cpp |
| index f60bf63eb7f89e91d50400f4fcd0b0aaa64cd718..86887b5b8f1b99c4e5586d29eca2311163074ceb 100644 |
| --- a/Source/modules/accessibility/AXNodeObject.cpp |
| +++ b/Source/modules/accessibility/AXNodeObject.cpp |
| @@ -93,6 +93,12 @@ static String accessibleNameForNode(Node* node) |
| return alt; |
| } |
| + if (node->isHTMLElement()) { |
|
dmazzoni
2015/01/27 06:40:46
Just combine this into the block above:
if (node-
|
| + const AtomicString& title = toHTMLElement(node)->getAttribute(titleAttr); |
| + if (!title.isEmpty()) |
| + return title; |
| + } |
| + |
| return String(); |
| } |