| Index: Source/WebKit/chromium/src/ContextMenuClientImpl.cpp
|
| ===================================================================
|
| --- Source/WebKit/chromium/src/ContextMenuClientImpl.cpp (revision 126724)
|
| +++ Source/WebKit/chromium/src/ContextMenuClientImpl.cpp (working copy)
|
| @@ -279,9 +279,8 @@
|
| // a mouse on a word, Chrome just needs to find a spelling marker on the word instread of spellchecking it.
|
| if (selectedFrame->settings() && selectedFrame->settings()->asynchronousSpellCheckingEnabled()) {
|
| VisibleSelection selection = selectedFrame->selection()->selection();
|
| - if (selection.isCaretOrRange()) {
|
| - if (selection.isCaret())
|
| - selection.expandUsingGranularity(WordGranularity);
|
| + if (selection.isCaret()) {
|
| + selection.expandUsingGranularity(WordGranularity);
|
| RefPtr<Range> range = selection.toNormalizedRange();
|
| Vector<DocumentMarker*> markers = selectedFrame->document()->markers()->markersInRange(range.get(), DocumentMarker::Spelling | DocumentMarker::Grammar);
|
| if (markers.size() == 1) {
|
|
|