| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index 02f3e15eae35cc7fb3f648598f313663cb012b3a..f0a96a12dee455198d76755887e99e017a3e2919 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -3410,12 +3410,14 @@ void WebViewImpl::showContextMenu()
|
| m_contextMenuAllowed = false;
|
| }
|
|
|
| -WebString WebViewImpl::getSmartClipData(WebRect rect)
|
| +void WebViewImpl::getSmartClipData(WebRect rect, WebString* clipText, WebRect* clipRect)
|
| {
|
| LocalFrame* frame = toLocalFrame(focusedWebCoreFrame());
|
| if (!frame)
|
| - return WebString();
|
| - return WebCore::SmartClip(frame).dataForRect(rect).toString();
|
| + return;
|
| + SmartClipData clipData = WebCore::SmartClip(frame).dataForRect(rect);
|
| + *clipText = clipData.getClipData();
|
| + *clipRect = clipData.getRect();
|
| }
|
|
|
| void WebViewImpl::hidePopups()
|
|
|