From 1b9a33f9b8284c5e9b6463d074df3e058650653a Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Sun, 18 Jun 2006 22:49:54 +0000 Subject: [PATCH] Bug 303023. Treate EMBEDs with subdocuments (e.g. SVG) like IFRAME or OBJECT while printing. r+sr+a=dbaron git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@200250 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/printing/nsPrintEngine.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/layout/printing/nsPrintEngine.cpp b/mozilla/layout/printing/nsPrintEngine.cpp index c456b89f0a7..b8c27819de3 100644 --- a/mozilla/layout/printing/nsPrintEngine.cpp +++ b/mozilla/layout/printing/nsPrintEngine.cpp @@ -77,6 +77,7 @@ static const char sPrintOptionsContractID[] = "@mozilla.org/gfx/printset #include "nsIDOMHTMLFrameSetElement.h" #include "nsIDOMHTMLIFrameElement.h" #include "nsIDOMHTMLObjectElement.h" +#include "nsIDOMHTMLEmbedElement.h" // Print Preview #include "imgIContainer.h" // image animation mode constants @@ -1953,8 +1954,10 @@ nsPrintEngine::MapContentForPO(nsPrintObject* aRootObject, do_QueryInterface(aContent); nsCOMPtr iFrame = do_QueryInterface(aContent); + nsCOMPtr embedElement = + do_QueryInterface(aContent); - if (iFrame || objElement) { + if (iFrame || objElement || embedElement) { po->mFrameType = eIFrame; po->mPrintAsIs = PR_TRUE; if (po->mParent) {