summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebViewCore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/jni/WebViewCore.cpp')
-rw-r--r--WebKit/android/jni/WebViewCore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp
index 2a86e56..5ad8a9e 100644
--- a/WebKit/android/jni/WebViewCore.cpp
+++ b/WebKit/android/jni/WebViewCore.cpp
@@ -1580,7 +1580,7 @@ WebCore::String WebViewCore::getSelection(SkRegion* selRgn)
if (end < -1) // use node if endNode is not valid
endNode = node;
if (end <= 0)
- end = static_cast<WebCore::Text*>(endNode)->string()->length();
+ end = static_cast<WebCore::Text*>(endNode)->dataImpl()->length();
DBG_NAV_LOGD("node=%p start=%d endNode=%p end=%d", node, start, endNode, end);
WebCore::Node* startNode = node;
do {
@@ -1589,7 +1589,7 @@ WebCore::String WebViewCore::getSelection(SkRegion* selRgn)
if (node->getRect().isEmpty())
continue;
WebCore::Text* textNode = static_cast<WebCore::Text*>(node);
- WebCore::StringImpl* string = textNode->string();
+ WebCore::StringImpl* string = textNode->dataImpl();
if (!string->length())
continue;
const UChar* chars = string->characters();