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
This commit is contained in:
@@ -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<nsIDOMHTMLIFrameElement> iFrame =
|
||||
do_QueryInterface(aContent);
|
||||
nsCOMPtr<nsIDOMHTMLEmbedElement> embedElement =
|
||||
do_QueryInterface(aContent);
|
||||
|
||||
if (iFrame || objElement) {
|
||||
if (iFrame || objElement || embedElement) {
|
||||
po->mFrameType = eIFrame;
|
||||
po->mPrintAsIs = PR_TRUE;
|
||||
if (po->mParent) {
|
||||
|
||||
Reference in New Issue
Block a user