Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2514)

Unified Diff: Source/web/WebViewImpl.cpp

Issue 530913003: Remove unnecessary codes (associated with save image feature) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/AssertMatchingEnums.cpp ('k') | public/web/WebNavigationPolicy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index a6c28a74e72c4c6e712e2d07c185f1504890f323..0df4934130c65939421f65bb26af8d79e34c2162 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -3318,8 +3318,10 @@ void WebViewImpl::copyImageAt(const WebPoint& point)
return;
HitTestResult result = hitTestResultForWindowPos(point);
+ Node* node = result.innerNonSharedNode();
+ ASSERT(node);
- if (result.absoluteImageURLIncludingCanvasDataURL().isEmpty()) {
+ if (!isHTMLCanvasElement(*node) && 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
« no previous file with comments | « Source/web/AssertMatchingEnums.cpp ('k') | public/web/WebNavigationPolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698