Issue #80 - De-unify dom/xul

This commit is contained in:
Moonchild 2020-04-23 17:51:21 +00:00 • committed by Roy Tam
commit 429b235e94
8 changed files with 19 additions and 3 deletions

View file

@ -19,7 +19,7 @@ if CONFIG['MOZ_XUL']:
'nsIXULDocument.h', 'nsIXULDocument.h',
] ]
UNIFIED_SOURCES += [ SOURCES += [
'nsXULCommandDispatcher.cpp', 'nsXULCommandDispatcher.cpp',
'nsXULContentSink.cpp', 'nsXULContentSink.cpp',
'nsXULElement.cpp', 'nsXULElement.cpp',
@ -36,7 +36,7 @@ XPIDL_SOURCES += [
XPIDL_MODULE = 'xul' XPIDL_MODULE = 'xul'
UNIFIED_SOURCES += [ SOURCES += [
'nsXULControllers.cpp', 'nsXULControllers.cpp',
] ]

View file

@ -42,6 +42,7 @@
#include "nsReadableUtils.h" #include "nsReadableUtils.h"
#include "nsXULElement.h" #include "nsXULElement.h"
#include "mozilla/Logging.h" #include "mozilla/Logging.h"
#include "mozilla/CheckedInt.h"
#include "prmem.h" #include "prmem.h"
#include "nsCRT.h" #include "nsCRT.h"
@ -57,6 +58,7 @@
#include "nsIScriptError.h" #include "nsIScriptError.h"
#include "nsContentTypeParser.h" #include "nsContentTypeParser.h"
using namespace mozilla;
static mozilla::LazyLogModule gContentSinkLog("nsXULContentSink");; static mozilla::LazyLogModule gContentSinkLog("nsXULContentSink");;
//---------------------------------------------------------------------- //----------------------------------------------------------------------

View file

@ -17,7 +17,7 @@ XPIDL_SOURCES += [
XPIDL_MODULE = 'xultmpl' XPIDL_MODULE = 'xultmpl'
UNIFIED_SOURCES += [ SOURCES += [
'nsContentSupportMap.cpp', 'nsContentSupportMap.cpp',
'nsContentTestNode.cpp', 'nsContentTestNode.cpp',
'nsInstantiationNode.cpp', 'nsInstantiationNode.cpp',

View file

@ -8,6 +8,9 @@
#include "nsXULTemplateQueryProcessorRDF.h" #include "nsXULTemplateQueryProcessorRDF.h"
#include "mozilla/Logging.h" #include "mozilla/Logging.h"
using namespace mozilla;
extern mozilla::LazyLogModule gXULTemplateLog; extern mozilla::LazyLogModule gXULTemplateLog;
nsInstantiationNode::nsInstantiationNode(nsXULTemplateQueryProcessorRDF* aProcessor, nsInstantiationNode::nsInstantiationNode(nsXULTemplateQueryProcessorRDF* aProcessor,

View file

@ -9,6 +9,8 @@
#include "PLDHashTable.h" #include "PLDHashTable.h"
#include "nsXULElement.h" #include "nsXULElement.h"
using mozilla::fallible;
class nsTemplateMap { class nsTemplateMap {
protected: protected:
struct Entry : public PLDHashEntryHdr { struct Entry : public PLDHashEntryHdr {

View file

@ -35,6 +35,10 @@
#include "nsXULSortService.h" #include "nsXULSortService.h"
#include "nsIDocument.h" #include "nsIDocument.h"
#include "mozilla/Logging.h"
using namespace mozilla;
//---------------------------------------------------------------------- //----------------------------------------------------------------------
#define PARSE_TYPE_INTEGER "Integer" #define PARSE_TYPE_INTEGER "Integer"

View file

@ -28,6 +28,8 @@
#include "nsIDocument.h" #include "nsIDocument.h"
#include "nsNetUtil.h" #include "nsNetUtil.h"
using mozilla::fallible;
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// //
// nsXULTemplateResultSetStorage // nsXULTemplateResultSetStorage

View file

@ -32,6 +32,9 @@
#include "nsTreeContentView.h" #include "nsTreeContentView.h"
#include "nsIXULStore.h" #include "nsIXULStore.h"
#include "mozilla/BinarySearch.h" #include "mozilla/BinarySearch.h"
#include "mozilla/Logging.h"
using mozilla::LogLevel;
// For security check // For security check
#include "nsIDocument.h" #include "nsIDocument.h"