Bug 1404734 - remove remaining use of nsIDOMHTMLImageElement from mailnews. r=aceman
This commit is contained in:
Родитель
39a0b74973
Коммит
4f34546979
|
@ -19,12 +19,12 @@
|
|||
#include "nsIDocShellTreeItem.h"
|
||||
#include "nsIWebNavigation.h"
|
||||
#include "nsContentPolicyUtils.h"
|
||||
#include "nsIDOMHTMLImageElement.h"
|
||||
#include "nsIFrameLoader.h"
|
||||
#include "nsIWebProgress.h"
|
||||
#include "nsMsgUtils.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "mozilla/mailnews/MimeHeaderParser.h"
|
||||
#include "mozilla/dom/HTMLImageElement.h"
|
||||
#include "nsINntpUrl.h"
|
||||
|
||||
static const char kBlockRemoteImages[] = "mailnews.message_display.disable_remote_image";
|
||||
|
@ -672,8 +672,10 @@ void nsMsgContentPolicy::ComposeShouldLoad(nsIMsgCompose *aMsgCompose,
|
|||
{
|
||||
bool insertingQuotedContent = true;
|
||||
aMsgCompose->GetInsertingQuotedContent(&insertingQuotedContent);
|
||||
nsCOMPtr<nsIDOMHTMLImageElement> imageElement(do_QueryInterface(aRequestingContext));
|
||||
if (imageElement)
|
||||
nsCOMPtr<Element> element = do_QueryInterface(aRequestingContext);
|
||||
RefPtr<mozilla::dom::HTMLImageElement> image =
|
||||
mozilla::dom::HTMLImageElement::FromContentOrNull(element);
|
||||
if (image)
|
||||
{
|
||||
if (!insertingQuotedContent)
|
||||
{
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include "nsIDOMNode.h"
|
||||
#include "nsIDOMNodeList.h"
|
||||
#include "nsIDOMText.h"
|
||||
#include "nsIDOMHTMLImageElement.h"
|
||||
#include "nsPIDOMWindow.h"
|
||||
#include "mozIDOMWindow.h"
|
||||
#include "nsISelectionController.h"
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include "nsMsgCopy.h"
|
||||
#include "nsUnicharUtils.h"
|
||||
#include "nsMsgPrompts.h"
|
||||
#include "nsIDOMHTMLImageElement.h"
|
||||
#include "nsCExternalHandlerService.h"
|
||||
#include "nsIMIMEService.h"
|
||||
#include "nsIDocument.h"
|
||||
|
|
Загрузка…
Ссылка в новой задаче