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 701d204c2be30d0c1996c3cd483314d17ca018c3..deeae9e58c735f8f63ee389a80e6d60f27fbd23c 100644 |
--- a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp |
+++ b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp |
@@ -38,6 +38,7 @@ |
#include "core/dom/Document.h" |
#include "core/editing/Editor.h" |
#include "core/editing/markers/DocumentMarkerController.h" |
+#include "core/editing/markers/SpellCheckMarker.h" |
#include "core/editing/spellcheck/SpellChecker.h" |
#include "core/frame/FrameView.h" |
#include "core/frame/Settings.h" |
@@ -119,7 +120,7 @@ static String selectMisspellingAsync(LocalFrame* selectedFrame, |
EphemeralRange(selectionRange), DocumentMarker::MisspellingMarkers()); |
if (markers.size() != 1) |
return String(); |
- description = markers[0]->description(); |
+ description = toSpellCheckMarker(markers[0])->description(); |
// Cloning a range fails only for invalid ranges. |
Range* markerRange = selectionRange->cloneRange(); |