| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index c7bd60281f12277fc42607777511075a526ae111..25f99d23c7f2d6abe72e87bc58a626c55aaf87c2 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -3448,12 +3448,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()
|
|
|