Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Unified Diff: third_party/WebKit/Source/web/ContextMenuClientImpl.cpp

Issue 2780313002: [WIP] Refactor DocumentMarker (Closed)
Patch Set: Move accessor methods into derived classes Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 dd9e57e9fe261a56dc41a8e0ea49eab7eefec896..f4ce1d60810bdd3d4aefb3b395c56e9c18629d5e 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();

Powered by Google App Engine
This is Rietveld 408576698