changeset 11006:89537cb225f8

8208123: Not able Copy Image to clipboard from Context Menu Reviewed-by: kcr, arajkumar Contributed-by: murali.billa@oracle.com, arunprasad.rajkumar@oracle.com
author mbilla
date Thu, 26 Jul 2018 22:44:48 +0530
parents 343ad315df2e
children 31ed6f47fe5d
files modules/javafx.web/src/main/native/Source/WebCore/editing/java/EditorJava.cpp
diffstat 1 files changed, 3 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/modules/javafx.web/src/main/native/Source/WebCore/editing/java/EditorJava.cpp	Wed Jul 25 05:34:20 2018 -0700
+++ b/modules/javafx.web/src/main/native/Source/WebCore/editing/java/EditorJava.cpp	Thu Jul 26 22:44:48 2018 +0530
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
  */
 #include "config.h"
 
@@ -42,21 +42,9 @@
     return RefPtr<DocumentFragment>();
 }
 
-void Editor::writeImageToPasteboard(Pasteboard&, Element&, const URL&, const String&)
+void Editor::writeImageToPasteboard(Pasteboard& pasteboard, Element& element, const URL& url, const String& title)
 {
-    notImplemented();
-#if 0
-    PasteboardImage pasteboardImage;
-
-    if (!getImageForElement(imageElement, pasteboardImage.image))
-        return;
-    ASSERT(pasteboardImage.image);
-
-    pasteboardImage.url.url = imageElement.document().completeURL(stripLeadingAndTrailingHTMLSpaces(elementURL(imageElement)));
-    pasteboardImage.url.title = title;
-    pasteboardImage.url.markup = createMarkup(imageElement, IncludeNode, nullptr, ResolveAllURLs);
-    pasteboard.write(pasteboardImage);
-#endif
+    pasteboard.writeImage(element, url, title);
 }
 
 void Editor::writeSelectionToPasteboard(Pasteboard& pasteboard)