Bug 942489 - Deunify more files that are caught by bug 941854; r=BenWa

This commit is contained in:
Ehsan Akhgari 2013-11-24 01:29:24 -05:00
parent d8b0918278
commit 869d0af69a
13 changed files with 46 additions and 33 deletions

View File

@ -117,7 +117,6 @@ UNIFIED_SOURCES += [
'DOMMediaStream.cpp',
'EncodedBufferCache.cpp',
'FileBlockCache.cpp',
'Latency.cpp',
'MediaCache.cpp',
'MediaDecoder.cpp',
'MediaDecoderReader.cpp',
@ -144,8 +143,10 @@ UNIFIED_SOURCES += [
]
# DecoderTraits.cpp needs to be built separately because of Mac OS X headers.
# Latency.cpp needs to be built separately because it forces NSPR logging.
SOURCES += [
'DecoderTraits.cpp',
'Latency.cpp',
]
FAIL_ON_WARNINGS = True

View File

@ -51,7 +51,6 @@ UNIFIED_SOURCES += [
'LoadContext.cpp',
'nsAboutRedirector.cpp',
'nsDefaultURIFixup.cpp',
'nsDocShell.cpp',
'nsDocShellEditorData.cpp',
'nsDocShellEnumerator.cpp',
'nsDocShellLoadInfo.cpp',
@ -62,6 +61,11 @@ UNIFIED_SOURCES += [
'SerializedLoadContext.cpp',
]
# nsDocShell.cpp cannot be built in unified mode because it forces NSPR logging.
SOURCES += [
'nsDocShell.cpp',
]
FAIL_ON_WARNINGS = True
MSVC_ENABLE_PGO = True

View File

@ -82,7 +82,6 @@ UNIFIED_SOURCES += [
'nsFocusManager.cpp',
'nsGlobalWindowCommands.cpp',
'nsHistory.cpp',
'nsJSEnvironment.cpp',
'nsJSTimeoutHandler.cpp',
'nsJSUtils.cpp',
'nsLocation.cpp',
@ -107,6 +106,8 @@ SOURCES += [
'nsDOMWindowUtils.cpp',
# This file has a #error "Never include windows.h in this file!"
'nsGlobalWindow.cpp',
# This file forces NSPR logging.
'nsJSEnvironment.cpp',
# nsPluginArray.cpp includes npapi.h indirectly, and that includes a lot of system headers
'nsPluginArray.cpp',
]

View File

@ -4,15 +4,11 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
UNIFIED_SOURCES += [
'nsAuthFactory.cpp',
'nsAuthGSSAPI.cpp',
'nsAuthSASL.cpp',
]
# contains constants whose names conflict with constants in other files
SOURCES += [
'nsHttpNegotiateAuth.cpp',
'nsAuthFactory.cpp', # forces NSPR logging
'nsAuthGSSAPI.cpp', # forces NSPR logging
'nsAuthSASL.cpp',
'nsHttpNegotiateAuth.cpp', # contains constants whose names conflict with constants in other files
]
if CONFIG['OS_ARCH'] == 'WINNT':
@ -21,8 +17,8 @@ if CONFIG['OS_ARCH'] == 'WINNT':
]
DEFINES['USE_SSPI'] = True
else:
UNIFIED_SOURCES += [
'nsAuthSambaNTLM.cpp',
SOURCES += [
'nsAuthSambaNTLM.cpp', # forces NSPR logging
]
FINAL_LIBRARY = 'xul'

View File

@ -4,7 +4,8 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
UNIFIED_SOURCES += [
# These files cannot be built in unified mode because they force NSPR logging.
SOURCES += [
'nsAutoConfig.cpp',
'nsConfigFactory.cpp',
'nsJSConfigTriggers.cpp',

View File

@ -79,7 +79,6 @@ UNIFIED_SOURCES += [
'nsCSSRenderingBorders.cpp',
'nsDisplayList.cpp',
'nsDisplayListInvalidation.cpp',
'nsDocumentViewer.cpp',
'nsFrameManager.cpp',
'nsFrameTraversal.cpp',
'nsGenConList.cpp',
@ -87,7 +86,6 @@ UNIFIED_SOURCES += [
'nsLayoutHistoryState.cpp',
'nsLayoutUtils.cpp',
'nsPresContext.cpp',
'nsPresShell.cpp',
'nsQuoteList.cpp',
'nsStyleChangeList.cpp',
'nsStyleSheetService.cpp',
@ -98,10 +96,14 @@ UNIFIED_SOURCES += [
'StackArena.cpp',
]
# nsDocumentViewer.cpp and nsPresShell.cpp need to be built separately
# because they force NSPR logging.
# nsPresArena.cpp needs to be built separately because it uses plarena.h.
# nsRefreshDriver.cpp needs to be built separately because of name clashes in the OS X headers
SOURCES += [
'nsDocumentViewer.cpp',
'nsPresArena.cpp',
'nsPresShell.cpp',
'nsRefreshDriver.cpp',
]

View File

@ -180,7 +180,7 @@ nsStyleSheetService::LoadAndRegisterSheet(nsIURI *aSheetURI,
return rv;
}
ipc::URIParams uri;
mozilla::ipc::URIParams uri;
SerializeURI(aSheetURI, uri);
for (uint32_t i = 0; i < children.Length(); i++) {
@ -268,7 +268,7 @@ nsStyleSheetService::UnregisterSheet(nsIURI *aSheetURI, uint32_t aSheetType)
return NS_OK;
}
ipc::URIParams uri;
mozilla::ipc::URIParams uri;
SerializeURI(aSheetURI, uri);
for (uint32_t i = 0; i < children.Length(); i++) {

View File

@ -14,12 +14,16 @@ XPIDL_MODULE = 'layout_printing'
UNIFIED_SOURCES += [
'nsPagePrintTimer.cpp',
'nsPrintData.cpp',
'nsPrintEngine.cpp',
'nsPrintObject.cpp',
'nsPrintPreviewListener.cpp',
]
# These files cannot be built in unified mode because they force NSPR logging.
SOURCES += [
'nsPrintData.cpp',
'nsPrintEngine.cpp',
]
FAIL_ON_WARNINGS = True
FINAL_LIBRARY = 'gklayout'

View File

@ -100,7 +100,6 @@ UNIFIED_SOURCES += [
'nsDOMCSSRGBColor.cpp',
'nsDOMCSSValueList.cpp',
'nsDOMMediaQueryList.cpp',
'nsFontFaceLoader.cpp',
'nsHTMLCSSStyleSheet.cpp',
'nsHTMLStyleSheet.cpp',
'nsLayoutStylesheetCache.cpp',
@ -121,8 +120,10 @@ UNIFIED_SOURCES += [
]
# nsCSSRuleProcessor.cpp needs to be built separately because it uses plarena.h.
# nsFontFaceLoader.cpp needs to be built separately because it forces NSPR logging.
SOURCES += [
'nsCSSRuleProcessor.cpp',
'nsFontFaceLoader.cpp',
]
FAIL_ON_WARNINGS = True

View File

@ -23,7 +23,6 @@ UNIFIED_SOURCES += [
'EventTokenBucket.cpp',
'LoadContextInfo.cpp',
'NetworkActivityMonitor.cpp',
'nsAsyncRedirectVerifyHelper.cpp',
'nsAsyncStreamCopier.cpp',
'nsAuthInformationHolder.cpp',
'nsBase64Encoder.cpp',
@ -54,8 +53,6 @@ UNIFIED_SOURCES += [
'nsSimpleNestedURI.cpp',
'nsSimpleStreamListener.cpp',
'nsSimpleURI.cpp',
'nsSocketTransport2.cpp',
'nsSocketTransportService2.cpp',
'nsStandardURL.cpp',
'nsStreamListenerTee.cpp',
'nsStreamListenerWrapper.cpp',
@ -76,6 +73,13 @@ UNIFIED_SOURCES += [
'Tickler.cpp',
]
# These files cannot be built in unified mode because they force NSPR logging.
SOURCES += [
'nsAsyncRedirectVerifyHelper.cpp',
'nsSocketTransport2.cpp',
'nsSocketTransportService2.cpp',
]
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'os2':
SOURCES += [
'nsURLHelperOS2.cpp',

View File

@ -21,13 +21,13 @@ EXPORTS.mozilla.net += [
SOURCES += [
'nsEffectiveTLDService.cpp', # Excluded from UNIFIED_SOURCES due to special build flags.
'nsHostResolver.cpp', # Excluded from UNIFIED_SOURCES due to NSPR forced logging.
]
UNIFIED_SOURCES += [
'DNS.cpp',
'nameprep.c',
'nsDNSService2.cpp',
'nsHostResolver.cpp',
'nsIDNService.cpp',
'punycode.c',
'race.c',

View File

@ -31,7 +31,6 @@
#include "nsURLHelper.h"
#include "nsThreadUtils.h"
#include "mozilla/DebugOnly.h"
#include "mozilla/HashFunctions.h"
#include "mozilla/TimeStamp.h"
#include "mozilla/Telemetry.h"
@ -309,7 +308,7 @@ HostDB_ClearEntry(PLDHashTable *table,
nsHostDBEnt *he = static_cast<nsHostDBEnt*>(entry);
MOZ_ASSERT(he, "nsHostDBEnt is null!");
DebugOnly<nsHostRecord*> hr = he->rec;
nsHostRecord *hr = he->rec;
MOZ_ASSERT(hr, "nsHostDBEnt has null host record!");
LOG(("Clearing cache db entry for host [%s].\n", hr->host));

View File

@ -26,15 +26,15 @@ EXPORTS.mozilla += [
'ModuleUtils.h',
]
# These two files cannot be built in unified mode because they use the
# PL_ARENA_CONST_ALIGN_MASK macro with plarena.h.
# nsCategoryManager.cpp and nsComponentManager.cpp cannot be built in
# unified mode because they use thea PL_ARENA_CONST_ALIGN_MASK macro
# with plarena.h.
# nsNativeComponentLoader.cpp cannot be built in unified mode because it
# forces NSPR logging.
SOURCES += [
'ManifestParser.cpp',
'nsCategoryManager.cpp',
'nsComponentManager.cpp',
]
UNIFIED_SOURCES += [
'ManifestParser.cpp',
'nsNativeComponentLoader.cpp',
]