зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1491574 - Part 1: Remove the XPCOM registration for nsProperties; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D5949
This commit is contained in:
Родитель
3807c128b7
Коммит
d6cfac82e5
|
@ -50,6 +50,7 @@
|
|||
#include "GeckoProfiler.h"
|
||||
#include "gfx2DGlue.h"
|
||||
#include "gfxPrefs.h"
|
||||
#include "nsProperties.h"
|
||||
#include <algorithm>
|
||||
|
||||
namespace mozilla {
|
||||
|
@ -1056,10 +1057,7 @@ NS_IMETHODIMP
|
|||
RasterImage::Set(const char* prop, nsISupports* value)
|
||||
{
|
||||
if (!mProperties) {
|
||||
mProperties = do_CreateInstance("@mozilla.org/properties;1");
|
||||
}
|
||||
if (!mProperties) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
mProperties = new nsProperties();
|
||||
}
|
||||
return mProperties->Set(prop, value);
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include "nsNetUtil.h"
|
||||
#include "nsIProtocolHandler.h"
|
||||
#include "imgIRequest.h"
|
||||
#include "nsProperties.h"
|
||||
|
||||
#include "mozilla/IntegerPrintfMacros.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
|
@ -108,7 +109,7 @@ imgRequest::Init(nsIURI *aURI,
|
|||
MOZ_ASSERT(aRequest, "No request");
|
||||
MOZ_ASSERT(aChannel, "No channel");
|
||||
|
||||
mProperties = do_CreateInstance("@mozilla.org/properties;1");
|
||||
mProperties = new nsProperties();
|
||||
mURI = aURI;
|
||||
mFinalURI = aFinalURI;
|
||||
mRequest = aRequest;
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#include "nsCycleCollector.h"
|
||||
#include "nsObserverList.h"
|
||||
#include "nsObserverService.h"
|
||||
#include "nsProperties.h"
|
||||
#include "nsPersistentProperties.h"
|
||||
#include "nsScriptableInputStream.h"
|
||||
#include "nsBinaryStream.h"
|
||||
|
@ -211,8 +210,6 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsVariantCC)
|
|||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsHashPropertyBagCC)
|
||||
|
||||
NS_GENERIC_AGGREGATED_CONSTRUCTOR(nsProperties)
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsUUIDGenerator, Init)
|
||||
|
||||
#ifdef MOZ_WIDGET_COCOA
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
COMPONENT(SCRIPTABLEBASE64ENCODER, nsScriptableBase64EncoderConstructor)
|
||||
COMPONENT(PIPE, nsPipeConstructor)
|
||||
|
||||
COMPONENT(PROPERTIES, nsPropertiesConstructor)
|
||||
|
||||
COMPONENT(PERSISTENTPROPERTIES, nsPersistentProperties::Create)
|
||||
|
||||
COMPONENT(ARRAY, nsArrayBase::XPCOMConstructor)
|
||||
|
|
|
@ -62,6 +62,7 @@ EXPORTS += [
|
|||
'nsJSThingHashtable.h',
|
||||
'nsMathUtils.h',
|
||||
'nsPointerHashKeys.h',
|
||||
'nsProperties.h',
|
||||
'nsQuickSort.h',
|
||||
'nsRefPtrHashtable.h',
|
||||
'nsSimpleEnumerator.h',
|
||||
|
|
|
@ -13,14 +13,6 @@
|
|||
#include "nsAgg.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
#define NS_PROPERTIES_CID \
|
||||
{ /* 4de2bc90-b1bf-11d3-93b6-00104ba0fd40 */ \
|
||||
0x4de2bc90, \
|
||||
0xb1bf, \
|
||||
0x11d3, \
|
||||
{0x93, 0xb6, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
|
||||
}
|
||||
|
||||
typedef nsInterfaceHashtable<nsCharPtrHashKey,
|
||||
nsISupports> nsProperties_HashBase;
|
||||
|
||||
|
@ -32,7 +24,7 @@ public:
|
|||
NS_DECL_AGGREGATED
|
||||
NS_DECL_NSIPROPERTIES
|
||||
|
||||
explicit nsProperties(nsISupports *aOuter) { NS_INIT_AGGREGATED(aOuter); }
|
||||
nsProperties() { NS_INIT_AGGREGATED(nullptr); }
|
||||
~nsProperties() {}
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче