summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/jni/WebViewCore.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp
index 87ef809..e7026d7 100644
--- a/WebKit/android/jni/WebViewCore.cpp
+++ b/WebKit/android/jni/WebViewCore.cpp
@@ -1906,10 +1906,11 @@ String WebViewCore::modifySelection(const String& alter, const String& direction
selection->addRange(rangeRef.get());
}
+ ExceptionCode ec;
if (equalIgnoringCase(direction, "forward")) {
- selection->collapseToEnd();
+ selection->collapseToEnd(ec);
} else if (equalIgnoringCase(direction, "backward")) {
- selection->collapseToStart();
+ selection->collapseToStart(ec);
} else {
LOGE("Invalid direction: %s", direction.utf8().data());
return String();