Source/WebKit/chromium: [Chromium] Select multi-word misspelling on context click
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Feb 2013 02:05:18 +0000 (02:05 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Feb 2013 02:05:18 +0000 (02:05 +0000)
commitff26b56c32ca2b0bcef59d58c865b5ddd0c922dc
treea589daa9789a3a388aebdbc7c5f5b53d4c754111
parent1ec470a7011d96f5977908a66d61068b4fd578d3
Source/WebKit/chromium: [Chromium] Select multi-word misspelling on context click
https://bugs.webkit.org/show_bug.cgi?id=108509

Patch by Rouslan Solomakhin <rouslan@chromium.org> on 2013-01-31
Reviewed by Tony Chang.

* src/ContextMenuClientImpl.cpp:
(WebKit):
(WebKit::selectMisspellingAsync): Added utility function to get the misspelling for asynchronous spellcheck.
(WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems): Select multi-word misspelling on context click.

Tools: [Chromium] Suggest 'uppercase' for multi-word misspelling 'upper case'
https://bugs.webkit.org/show_bug.cgi?id=108509

Patch by Rouslan Solomakhin <rouslan@chromium.org> on 2013-01-31
Reviewed by Tony Chang.

* DumpRenderTree/chromium/TestRunner/src/MockSpellCheck.cpp:
(append): Added utility function to append WebString to WebVector.
(MockSpellCheck::fillSuggestionList): Suggest 'uppercase' for misspelling 'upper case'.

LayoutTests: [Chromium] Expect spellcheck to select multi-word misspelling on context click
https://bugs.webkit.org/show_bug.cgi?id=108509

Patch by Rouslan Solomakhin <rouslan@chromium.org> on 2013-01-31
Reviewed by Tony Chang.

* editing/spelling/spelling-exactly-selected-multiple-words.html: Check spelling suggestion for multi-word misspelling.
* editing/spelling/spelling-should-select-multiple-words.html: Check spelling suggestion for multi-word misspelling.
* editing/spelling/spelling-exactly-selected-multiple-words-expected.txt:
* editing/spelling/spelling-should-select-multiple-words-expected.txt:
* platform/chromium/TestExpectations: Expect spellcheck to select multi-word misspelling on context click

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@141519 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/spelling/spelling-exactly-selected-multiple-words-expected.txt
LayoutTests/editing/spelling/spelling-exactly-selected-multiple-words.html
LayoutTests/editing/spelling/spelling-should-select-multiple-words-expected.txt
LayoutTests/editing/spelling/spelling-should-select-multiple-words.html
LayoutTests/platform/chromium/TestExpectations
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/ContextMenuClientImpl.cpp
Tools/ChangeLog
Tools/DumpRenderTree/chromium/TestRunner/src/MockSpellCheck.cpp