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

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

Issue 2790703004: [WIP] Move DocumentMarker accessors into subclasses (Closed)
Patch Set: Move CompositionMarkerList::at() into previous CL 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
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698