Skip to content
Permalink
Browse files
[EFL] Fix build break since r209907. Unreviewed.
https://bugs.webkit.org/show_bug.cgi?id=165954

* UIProcess/efl/TextCheckerEfl.cpp: Change the remaining TextBreakIterator to UBreakIterator
(WebKit::nextWordOffset):
(WebKit::TextChecker::checkTextOfParagraph):

Canonical link: https://commits.webkit.org/183552@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
joonghunpark committed Dec 16, 2016
1 parent 8ad11de commit 82f97c3094eb5fdf7370f0a7803881faadfc43a5
Showing with 12 additions and 2 deletions.
  1. +9 −0 Source/WebKit2/ChangeLog
  2. +3 −2 Source/WebKit2/UIProcess/efl/TextCheckerEfl.cpp
@@ -1,3 +1,12 @@
2016-12-16 Joonghun Park <jh718.park@samsung.com>

[EFL] Fix build break since r209907. Unreviewed.
https://bugs.webkit.org/show_bug.cgi?id=165954

* UIProcess/efl/TextCheckerEfl.cpp: Change the remaining TextBreakIterator to UBreakIterator
(WebKit::nextWordOffset):
(WebKit::TextChecker::checkTextOfParagraph):

2016-12-15 Darin Adler <darin@apple.com>

Use asString instead of toWTFString, toString, or getString when we already checked isString
@@ -34,6 +34,7 @@
#if ENABLE(SPELLCHECK)
#include "TextCheckerClientEfl.h"
#include "WebTextChecker.h"
#include <unicode/ubrk.h>
#include <wtf/text/TextBreakIterator.h>
#endif

@@ -139,7 +140,7 @@ static unsigned nextWordOffset(StringView text, unsigned currentOffset)
// or after "offset" (ubrk_isBoundary side effect).
// For many word separators, the method doesn't properly determine the boundaries
// without resetting the iterator.
TextBreakIterator* textIterator = wordBreakIterator(text);
UBreakIterator* textIterator = wordBreakIterator(text);
if (!textIterator)
return currentOffset;

@@ -167,7 +168,7 @@ Vector<TextCheckingResult> TextChecker::checkTextOfParagraph(int64_t spellDocume
Vector<TextCheckingResult> paragraphCheckingResult;
#if ENABLE(SPELLCHECK)
if (checkingTypes & TextCheckingTypeSpelling) {
TextBreakIterator* textIterator = wordBreakIterator(text);
UBreakIterator* textIterator = wordBreakIterator(text);
if (!textIterator)
return paragraphCheckingResult;

0 comments on commit 82f97c3

Please sign in to comment.