| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index 80ff79a1e3ec10aa6bda8e121228e161eae2d7f4..538bbd5fc2136d8103867692d1a02bf80b664852 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -3498,12 +3498,21 @@ void WebViewImpl::showContextMenu()
|
| m_contextMenuAllowed = false;
|
| }
|
|
|
| +// FIXME: This should be removed when the chromium side patch lands
|
| +// http://codereview.chromium.org/260623004
|
| WebString WebViewImpl::getSmartClipData(WebRect rect)
|
| {
|
| + return WebString();
|
| +}
|
| +
|
| +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.clipData();
|
| + clipRect = clipData.rect();
|
| }
|
|
|
| void WebViewImpl::hidePopups()
|
|
|