Chromium Code Reviews| Index: webkit/glue/webclipboard_impl.cc |
| diff --git a/webkit/glue/webclipboard_impl.cc b/webkit/glue/webclipboard_impl.cc |
| index 10dddab7ddc4adc02dd59cf252ee0ef1611066fa..875c6e4c6b1fed03218408f3afedb76b3fdb26db 100644 |
| --- a/webkit/glue/webclipboard_impl.cc |
| +++ b/webkit/glue/webclipboard_impl.cc |
| @@ -179,13 +179,17 @@ void WebClipboardImpl::writeImage( |
| scw.WriteBitmapFromPixels(bitmap.getPixels(), image.size()); |
| } |
| - // When writing the image, we also write the image markup so that pasting |
| - // into rich text editors, such as Gmail, reveals the image. We also don't |
| - // want to call writeText(), since some applications (WordPad) don't pick the |
| - // image if there is also a text format on the clipboard. |
| if (!url.isEmpty()) { |
| scw.WriteBookmark(title, url.spec()); |
| +#if !defined(OS_MACOSX) |
| + // When writing the image, we also write the image markup so that pasting |
| + // into rich text editors, such as Gmail, reveals the image. We also don't |
| + // want to call writeText(), since some applications (WordPad) don't pick |
| + // the image if there is also a text format on the clipboard. |
| + // We also don't want to write HTML on a Mac, since Mail.app prefers to use |
| + // the image markup over attaching the actual image. |
|
Nico
2011/06/09 16:11:38
nit: Maybe add "See http://crbug.com/33016"
|
| scw.WriteHTML(UTF8ToUTF16(URLToImageMarkup(url, title)), ""); |
| +#endif |
| } |
| } |