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

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

Issue 2906243002: Revert of Allow storing multiple replacements on SpellCheckResult (Closed)
Patch Set: Revert "Allow storing multiple replacements on SpellCheckResult" Created 3 years, 7 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/WebTextCheckingResult.cpp
diff --git a/third_party/WebKit/Source/web/WebTextCheckingResult.cpp b/third_party/WebKit/Source/web/WebTextCheckingResult.cpp
index bf18da766822ee26728d3a8019acba9dda0fac97..fa6ff49af3d324623bb2babf3786174c559e6073 100644
--- a/third_party/WebKit/Source/web/WebTextCheckingResult.cpp
+++ b/third_party/WebKit/Source/web/WebTextCheckingResult.cpp
@@ -39,18 +39,12 @@ WebTextCheckingResult::operator TextCheckingResult() const {
result.decoration = static_cast<TextDecorationType>(decoration);
result.location = location;
result.length = length;
-
- Vector<String> replacements_vec;
- for (const WebString& replacement : replacements) {
- replacements_vec.push_back(replacement);
- }
- result.replacements = replacements_vec;
-
+ result.replacement = replacement;
if (result.decoration == kTextDecorationTypeGrammar) {
GrammarDetail detail;
detail.location = 0;
detail.length = length;
- detail.user_description = replacements.empty() ? "" : replacements[0];
+ detail.user_description = replacement;
result.details.push_back(detail);
}
« no previous file with comments | « third_party/WebKit/Source/platform/text/TextChecking.h ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698