| Index: third_party/WebKit/Source/web/WebViewImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| index 9e72f68e2ae62c3332868c6cfd7f90f856fb7cac..b6a2124a99df9cae5aa8b7622afa65c58aeb9af4 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -3626,42 +3626,6 @@ HitTestResult WebViewImpl::coreHitTestResultAt(const WebPoint& pointInViewport)
|
| return hitTestResultForRootFramePos(pointInRootFrame);
|
| }
|
|
|
| -void WebViewImpl::copyImageAt(const WebPoint& point)
|
| -{
|
| - if (!m_page)
|
| - return;
|
| -
|
| - HitTestResult result = hitTestResultForViewportPos(point);
|
| - if (!isHTMLCanvasElement(result.innerNodeOrImageMapImage()) && result.absoluteImageURL().isEmpty()) {
|
| - // There isn't actually an image at these coordinates. Might be because
|
| - // the window scrolled while the context menu was open or because the page
|
| - // changed itself between when we thought there was an image here and when
|
| - // we actually tried to retreive the image.
|
| - //
|
| - // FIXME: implement a cache of the most recent HitTestResult to avoid having
|
| - // to do two hit tests.
|
| - return;
|
| - }
|
| -
|
| - m_page->deprecatedLocalMainFrame()->editor().copyImage(result);
|
| -}
|
| -
|
| -void WebViewImpl::saveImageAt(const WebPoint& point)
|
| -{
|
| - if (!m_client)
|
| - return;
|
| -
|
| - Node* node = hitTestResultForViewportPos(point).innerNodeOrImageMapImage();
|
| - if (!node || !(isHTMLCanvasElement(*node) || isHTMLImageElement(*node)))
|
| - return;
|
| -
|
| - String url = toElement(*node).imageSourceURL();
|
| - if (!KURL(KURL(), url).protocolIsData())
|
| - return;
|
| -
|
| - m_client->saveImageFromDataURL(url);
|
| -}
|
| -
|
| void WebViewImpl::dragSourceEndedAt(
|
| const WebPoint& clientPoint,
|
| const WebPoint& screenPoint,
|
|
|