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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 2255363002: TextInputManager::GetTextSelection() should be called on focused widget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 5991147c90829ff2176083ab224bce3e3859276d..d690c9d778c58a3c781ec0415c4bacfc1fc03794 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1520,7 +1520,7 @@ bool RenderWidgetHostViewAura::GetTextRange(gfx::Range* range) const {
return false;
const TextInputManager::TextSelection* selection =
- text_input_manager_->GetTextSelection();
+ text_input_manager_->GetTextSelection(GetFocusedWidget()->GetView());
if (!selection)
return false;
@@ -1541,7 +1541,7 @@ bool RenderWidgetHostViewAura::GetSelectionRange(gfx::Range* range) const {
return false;
const TextInputManager::TextSelection* selection =
- text_input_manager_->GetTextSelection();
+ text_input_manager_->GetTextSelection(GetFocusedWidget()->GetView());
if (!selection)
return false;
@@ -1569,7 +1569,7 @@ bool RenderWidgetHostViewAura::GetTextFromRange(
return false;
const TextInputManager::TextSelection* selection =
- text_input_manager_->GetTextSelection();
+ text_input_manager_->GetTextSelection(GetFocusedWidget()->GetView());
if (!selection)
return false;

Powered by Google App Engine
This is Rietveld 408576698