| Index: ui/views/controls/textfield/native_textfield_views.cc
|
| diff --git a/ui/views/controls/textfield/native_textfield_views.cc b/ui/views/controls/textfield/native_textfield_views.cc
|
| index f181fbff4b08305a9d83b3403837be77e9de6792..113176dcf40551310d348f8a26a5b644864c2935 100644
|
| --- a/ui/views/controls/textfield/native_textfield_views.cc
|
| +++ b/ui/views/controls/textfield/native_textfield_views.cc
|
| @@ -474,8 +474,8 @@ void NativeTextfieldViews::UpdateText() {
|
| model_->SetText(GetTextForDisplay(textfield_->text()));
|
| OnCaretBoundsChanged();
|
| SchedulePaint();
|
| - textfield_->GetWidget()->NotifyAccessibilityEvent(
|
| - textfield_, ui::AccessibilityTypes::EVENT_TEXT_CHANGED, true);
|
| + textfield_->NotifyAccessibilityEvent(
|
| + ui::AccessibilityTypes::EVENT_TEXT_CHANGED, true);
|
| }
|
|
|
| void NativeTextfieldViews::AppendText(const string16& text) {
|
| @@ -621,8 +621,8 @@ void NativeTextfieldViews::SelectRange(const ui::Range& range) {
|
| model_->SelectRange(range);
|
| OnCaretBoundsChanged();
|
| SchedulePaint();
|
| - textfield_->GetWidget()->NotifyAccessibilityEvent(
|
| - textfield_, ui::AccessibilityTypes::EVENT_SELECTION_CHANGED, true);
|
| + textfield_->NotifyAccessibilityEvent(
|
| + ui::AccessibilityTypes::EVENT_SELECTION_CHANGED, true);
|
| }
|
|
|
| gfx::SelectionModel NativeTextfieldViews::GetSelectionModel() const {
|
| @@ -1222,8 +1222,8 @@ void NativeTextfieldViews::UpdateAfterChange(bool text_changed,
|
| bool cursor_changed) {
|
| if (text_changed) {
|
| PropagateTextChange();
|
| - textfield_->GetWidget()->NotifyAccessibilityEvent(
|
| - textfield_, ui::AccessibilityTypes::EVENT_TEXT_CHANGED, true);
|
| + textfield_->NotifyAccessibilityEvent(
|
| + ui::AccessibilityTypes::EVENT_TEXT_CHANGED, true);
|
| }
|
| if (cursor_changed) {
|
| is_cursor_visible_ = true;
|
| @@ -1231,8 +1231,8 @@ void NativeTextfieldViews::UpdateAfterChange(bool text_changed,
|
| if (!text_changed) {
|
| // TEXT_CHANGED implies SELECTION_CHANGED, so we only need to fire
|
| // this if only the selection changed.
|
| - textfield_->GetWidget()->NotifyAccessibilityEvent(
|
| - textfield_, ui::AccessibilityTypes::EVENT_SELECTION_CHANGED, true);
|
| + textfield_->NotifyAccessibilityEvent(
|
| + ui::AccessibilityTypes::EVENT_SELECTION_CHANGED, true);
|
| }
|
| }
|
| if (text_changed || cursor_changed) {
|
|
|