| 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;
|
|
|