| Index: third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
|
| index a5b0b4e643f4b66cda1cf2ff3b36721a27243d72..091e80a2dd3b62757266e466b967ac088ae00706 100644
|
| --- a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
|
| @@ -106,7 +106,7 @@ static bool IsWhiteSpaceOrPunctuation(UChar c)
|
| return isSpaceOrNewline(c) || WTF::Unicode::isPunct(c);
|
| }
|
|
|
| -static String selectMisspellingAsync(LocalFrame* selectedFrame, String& description, uint32_t& hash)
|
| +static String selectMisspellingAsync(LocalFrame* selectedFrame, String& description)
|
| {
|
| VisibleSelection selection = selectedFrame->selection().selection();
|
| if (selection.isNone())
|
| @@ -118,7 +118,6 @@ static String selectMisspellingAsync(LocalFrame* selectedFrame, String& descript
|
| if (markers.size() != 1)
|
| return String();
|
| description = markers[0]->description();
|
| - hash = markers[0]->hash();
|
|
|
| // Cloning a range fails only for invalid ranges.
|
| Range* markerRange = selectionRange->cloneRange();
|
| @@ -304,9 +303,7 @@ bool ContextMenuClientImpl::showContextMenu(const ContextMenu* defaultMenu, bool
|
| // user right-clicks a mouse on a word, Chrome just needs to find a
|
| // spelling marker on the word instead of spellchecking it.
|
| String description;
|
| - uint32_t hash = 0;
|
| - data.misspelledWord = selectMisspellingAsync(selectedFrame, description, hash);
|
| - data.misspellingHash = hash;
|
| + data.misspelledWord = selectMisspellingAsync(selectedFrame, description);
|
| if (description.length()) {
|
| Vector<String> suggestions;
|
| description.split('\n', suggestions);
|
|
|