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

Unified Diff: content/renderer/input_tag_speech_dispatcher.cc

Issue 10832243: InputTagSpeechDispatcher: don't try to compensate for scrolling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/input_tag_speech_dispatcher.cc
diff --git a/content/renderer/input_tag_speech_dispatcher.cc b/content/renderer/input_tag_speech_dispatcher.cc
index 41f3dd7bbe7ad695cc1fac4ef9c9fccd97bc3fbc..11c868f0c426fea96a8a3fa1cbeeea0229a198fe 100644
--- a/content/renderer/input_tag_speech_dispatcher.cc
+++ b/content/renderer/input_tag_speech_dispatcher.cc
@@ -63,9 +63,7 @@ bool InputTagSpeechDispatcher::startRecognition(
params.origin_url = UTF16ToUTF8(origin.toString());
params.render_view_id = routing_id();
params.request_id = request_id;
- gfx::Size scroll = render_view()->GetWebView()->mainFrame()->scrollOffset();
params.element_rect = element_rect;
- params.element_rect.Offset(-scroll.width(), -scroll.height());
Send(new InputTagSpeechHostMsg_StartRecognition(params));
VLOG(1) << "InputTagSpeechDispatcher::startRecognition exit";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698