summaryrefslogtreecommitdiffstats
path: root/WebKit/mac/WebView/WebTextCompletionController.mm
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/mac/WebView/WebTextCompletionController.mm')
-rw-r--r--WebKit/mac/WebView/WebTextCompletionController.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebKit/mac/WebView/WebTextCompletionController.mm b/WebKit/mac/WebView/WebTextCompletionController.mm
index 2421fd7..ab0e621 100644
--- a/WebKit/mac/WebView/WebTextCompletionController.mm
+++ b/WebKit/mac/WebView/WebTextCompletionController.mm
@@ -172,8 +172,8 @@ using namespace std;
// Get preceeding word stem
WebFrame *frame = [_htmlView _frame];
DOMRange *selection = kit(core(frame)->selection()->toNormalizedRange().get());
- DOMRange *wholeWord = [frame _rangeByAlteringCurrentSelection:SelectionController::EXTEND
- direction:SelectionController::BACKWARD granularity:WordGranularity];
+ DOMRange *wholeWord = [frame _rangeByAlteringCurrentSelection:SelectionController::AlterationExtend
+ direction:SelectionController::DirectionBackward granularity:WordGranularity];
DOMRange *prefix = [wholeWord cloneRange];
[prefix setEnd:[selection startContainer] offset:[selection startOffset]];