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

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

Issue 1467423002: Implement nameFromLabelElement to see if a control is associated with a label. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@axlayoutobj_null
Patch Set: 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/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.
//

Powered by Google App Engine
This is Rietveld 408576698