зеркало из https://github.com/mozilla/gecko-dev.git
Bug 749527 - Remove text formats in clipboard when copying an image. r=ehsan.
This commit is contained in:
Родитель
b1feec2eac
Коммит
4d163ec0b5
|
@ -565,8 +565,8 @@ nsClipboardImageCommands::DoClipboardCommand(const char *aCommandName, nsIConten
|
|||
return aEdit->CopyImage(nsIContentViewerEdit::COPY_IMAGE_TEXT);
|
||||
if (!nsCRT::strcmp(sCopyImageContentsString, aCommandName))
|
||||
return aEdit->CopyImage(nsIContentViewerEdit::COPY_IMAGE_DATA);
|
||||
|
||||
PRInt32 copyFlags = nsIContentViewerEdit::COPY_IMAGE_ALL;
|
||||
PRInt32 copyFlags = nsIContentViewerEdit::COPY_IMAGE_DATA |
|
||||
nsIContentViewerEdit::COPY_IMAGE_HTML;
|
||||
if (aParams)
|
||||
aParams->GetLongValue("imageCopy", ©Flags);
|
||||
return aEdit->CopyImage(copyFlags);
|
||||
|
|
Загрузка…
Ссылка в новой задаче