Index: Source/web/ContextMenuClientImpl.cpp |
diff --git a/Source/web/ContextMenuClientImpl.cpp b/Source/web/ContextMenuClientImpl.cpp |
index 7c61f82c8776f749467000994126bee32227e65f..d1b49209c74095ab4657ae1c94ad65b1ed610740 100644 |
--- a/Source/web/ContextMenuClientImpl.cpp |
+++ b/Source/web/ContextMenuClientImpl.cpp |
@@ -215,7 +215,9 @@ void ContextMenuClientImpl::showContextMenu(const WebCore::ContextMenu* defaultM |
// all else. |
data.linkURL = r.absoluteLinkURL(); |
- if (!r.absoluteImageURL().isEmpty()) { |
+ if (isHTMLCanvasElement(r.innerNonSharedNode())) { |
+ data.mediaType = WebContextMenuData::MediaTypeCanvas; |
+ } else if (!r.absoluteImageURL().isEmpty()) { |
data.srcURL = r.absoluteImageURL(); |
data.mediaType = WebContextMenuData::MediaTypeImage; |
data.mediaFlags |= WebContextMenuData::MediaCanPrint; |