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

Unified Diff: content/browser/accessibility/browser_accessibility_win.cc

Issue 1046883002: Use multiline attribute to check for IA2_STATE_MULTILINE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing textarea Created 5 years, 8 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: content/browser/accessibility/browser_accessibility_win.cc
diff --git a/content/browser/accessibility/browser_accessibility_win.cc b/content/browser/accessibility/browser_accessibility_win.cc
index 1d84b79e211f8e2c25a12a25274f8a3ccdf77a01..e8a82f7e7f906cc102aa0fe473c0cdfe3a89aa47 100644
--- a/content/browser/accessibility/browser_accessibility_win.cc
+++ b/content/browser/accessibility/browser_accessibility_win.cc
@@ -4064,16 +4064,13 @@ void BrowserAccessibilityWin::InitRoleAndState() {
ia_role = ROLE_SYSTEM_PUSHBUTTON;
ia2_role = IA2_ROLE_TOGGLE_BUTTON;
break;
- case ui::AX_ROLE_TEXT_AREA:
- ia_role = ROLE_SYSTEM_TEXT;
- ia2_state |= IA2_STATE_MULTI_LINE;
- ia2_state |= IA2_STATE_EDITABLE;
- ia2_state |= IA2_STATE_SELECTABLE_TEXT;
- break;
case ui::AX_ROLE_TEXT_FIELD:
case ui::AX_ROLE_SEARCH_BOX:
ia_role = ROLE_SYSTEM_TEXT;
- ia2_state |= IA2_STATE_SINGLE_LINE;
+ if (HasState(ui::AX_STATE_MULTILINE))
+ ia2_state |= IA2_STATE_MULTI_LINE;
+ else
+ ia2_state |= IA2_STATE_SINGLE_LINE;
ia2_state |= IA2_STATE_EDITABLE;
ia2_state |= IA2_STATE_SELECTABLE_TEXT;
break;

Powered by Google App Engine
This is Rietveld 408576698