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

Unified Diff: Source/modules/accessibility/AXLayoutObject.cpp

Issue 1009543009: Re-land: Return the accessible selection bounds in password fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test Created 5 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: Source/modules/accessibility/AXLayoutObject.cpp
diff --git a/Source/modules/accessibility/AXLayoutObject.cpp b/Source/modules/accessibility/AXLayoutObject.cpp
index 4fe12bb83466203ac5c744888b02b22dcd6db3f6..c956bc499306fd2c24e6e0e32ab4fa7fd5be3d81 100644
--- a/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/Source/modules/accessibility/AXLayoutObject.cpp
@@ -1660,9 +1660,6 @@ AXObject::PlainTextRange AXLayoutObject::selectedTextRange() const
if (!isTextControl())
return PlainTextRange();
- if (isPasswordFieldAndShouldHideValue())
- return PlainTextRange();
-
AccessibilityRole ariaRole = ariaRoleAttribute();
if (isNativeTextControl() && ariaRole == UnknownRole && m_layoutObject->isTextControl()) {
HTMLTextFormControlElement* textControl = toLayoutTextControl(m_layoutObject)->textFormControlElement();
« no previous file with comments | « LayoutTests/accessibility/input-type-password-selection-expected.txt ('k') | Source/modules/accessibility/AXNodeObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698