Commit 310f3286 authored by hans@chromium.org's avatar hans@chromium.org

InputTagSpeechDispatcher: don't try to compensate for scrolling

Don't try compensate for scrolling on the rect position.
This doesn't work anyway, and should be handled properly in WebCore.

BUG=141097


Review URL: https://chromiumcodereview.appspot.com/10832243

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151555 0039d316-1c4b-4281-b951-d872f2087c98
parent 24f76398
......@@ -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";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment