Issue #80 - De-unify layout/printing

This commit is contained in:
Moonchild 2020-04-29 19:53:36 +00:00 • committed by Roy Tam
commit 1b39899185
6 changed files with 11 additions and 4 deletions

View file

@ -18,7 +18,6 @@
#include "nsIDeviceContextSpec.h"
#include "nsIPrintSettings.h"
#include "nsIWebProgressListener.h"
#include "PrintTranslator.h"
namespace mozilla {
namespace layout {

View file

@ -13,11 +13,11 @@
#include "nsCOMPtr.h"
#include "mozilla/RefPtr.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/layout/PrintTranslator.h"
class nsDeviceContext;
class nsIPrintSettings;
class nsIWebProgressListener;
class PrintTranslator;
namespace mozilla {
namespace layout {

View file

@ -13,11 +13,12 @@ XPIDL_SOURCES += [
EXPORTS.mozilla.layout += [
'ipc/RemotePrintJobChild.h',
'ipc/RemotePrintJobParent.h',
'PrintTranslator.h',
]
XPIDL_MODULE = 'layout_printing'
UNIFIED_SOURCES += [
SOURCES += [
'ipc/RemotePrintJobChild.cpp',
'ipc/RemotePrintJobParent.cpp',
'nsPagePrintTimer.cpp',

View file

@ -7,9 +7,11 @@
#include "nsIStringBundle.h"
#include "nsIServiceManager.h"
#include "nsPIDOMWindow.h"
#include "nsPrintObject.h"
#include "nsPrintPreviewListener.h"
#include "nsIWebProgressListener.h"
#include "nsIWidget.h"
#include "mozilla/Services.h"
//-----------------------------------------------------

View file

@ -16,6 +16,7 @@
#include "nsPIDOMWindow.h"
#include "nsIDocShell.h"
#include "nsIURI.h"
#include "nsIFile.h"
#include "nsITextToSubURI.h"
#include "nsError.h"
@ -143,7 +144,7 @@ using namespace mozilla::dom;
#define DUMP_LAYOUT_LEVEL 9 // this turns on the dumping of each doucment's layout info
#ifndef PR_PL
static mozilla::LazyLogModule gPrintingLog("printing")
static mozilla::LazyLogModule gPrintingLog("printing");
#define PR_PL(_p1) MOZ_LOG(gPrintingLog, mozilla::LogLevel::Debug, _p1);
#endif

View file

@ -6,6 +6,7 @@
#include "nsPrintObject.h"
#include "nsIContentViewer.h"
#include "nsIDOMDocument.h"
#include "nsIDOMElement.h"
#include "nsContentUtils.h" // for nsAutoScriptBlocker
#include "nsIInterfaceRequestorUtils.h"
#include "nsPIDOMWindow.h"
@ -14,6 +15,9 @@
#include "nsIDocShellTreeItem.h"
#include "nsIBaseWindow.h"
#include "nsIDocument.h"
#include "nsIWidget.h"
#include "mozilla/Unused.h"
#include "mozilla/dom/Element.h"
//---------------------------------------------------
//-- nsPrintObject Class Impl