• hans@chromium.org's avatar
    Speech Input: wrong position was reported for scolled-down elements · cd07ca2e
    hans@chromium.org authored
    Reviewed by Kent Tamura.
    When clicking on a speech-enabled input element, WebKit reports
    the position of the element to the embedder, so that it can show
    a bubble indicating that speech recognition is in progress for
    the element that the user clicked on.
    On a page that was scrolled, this position was being reported
    erroneously: it was given relative to the frame content as opposed to
    the root view, and the in-progress bubble would be shown in the wrong
    Test: fast/speech/bubble-position-scrolled.html
    * html/shadow/TextControlInnerElements.cpp:
    Test that the position of the speech element is passed to the embedder
    corectly, i.e. where the user clicked, when the page is scrolled down.
    * fast/speech/bubble-position-scrolled-expected.txt: Added.
    * fast/speech/bubble-position-scrolled.html: Added.
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125529 268f45cc-cd09-0410-ab3c-d52691b4dbfc