Chromium Code Reviews| Index: Source/web/WebViewImpl.cpp |
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
| index 870913bbd6e4a9e2bfee1a1f3deac1a83680c753..82371a278e565d2ce108616cf005b019ee68c3fa 100644 |
| --- a/Source/web/WebViewImpl.cpp |
| +++ b/Source/web/WebViewImpl.cpp |
| @@ -3548,6 +3548,18 @@ void WebViewImpl::saveImageAt(const WebPoint& point) |
| m_client->saveImageFromDataURL(url); |
| } |
| +void WebViewImpl::reloadImageAt(const WebPoint& point, bool bypassCache) |
| +{ |
| + if (!m_page) |
| + return; |
| + |
| + HitTestResult result = hitTestResultForViewportPos(point); |
|
Nate Chapin
2015/04/30 20:59:41
The need to do a hit test to re-find the element i
megjablon
2015/04/30 22:00:55
You you point me to the code for this? This follow
|
| + if (!isHTMLImageElement(result.innerNodeOrImageMapImage()) || result.absoluteImageURL().isEmpty()) |
| + return; |
| + |
| + m_page->deprecatedLocalMainFrame()->editor().reloadImage(result, bypassCache); |
| +} |
| + |
| void WebViewImpl::dragSourceEndedAt( |
| const WebPoint& clientPoint, |
| const WebPoint& screenPoint, |