Index: third_party/WebKit/Source/modules/accessibility/AXObject.h |
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.h b/third_party/WebKit/Source/modules/accessibility/AXObject.h |
index 431c4d3529903088547de5ca7b4076c9633e96ba..03f0f19018448ba10eb2d556ce43430bbeb434f4 100644 |
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.h |
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.h |
@@ -704,6 +704,11 @@ public: |
// This is a simpler high-level interface to |name| used by Inspector. |
String computedName() const; |
+ // Internal function used to determine whether the result of calling |name| on this object would |
+ // return text that came from the an HTML label element or not. This is intended to be faster than calling |
+ // |name| or |textAlternative|, and without side effects (it won't call axObjectCache->getOrCreate). |
+ virtual bool nameFromLabelElement() const { return false; } |
+ |
// |
// Properties of static elements. |
// |