зеркало из https://github.com/mozilla/pjs.git
Bug 756576 - nsDOMAttributeMap::Init should be removed. r=bsmedberg
This commit is contained in:
Родитель
a3e2622850
Коммит
f78f65f6cd
|
@ -27,13 +27,7 @@ nsDOMAttributeMap::nsDOMAttributeMap(Element* aContent)
|
|||
{
|
||||
// We don't add a reference to our content. If it goes away,
|
||||
// we'll be told to drop our reference
|
||||
}
|
||||
|
||||
bool
|
||||
nsDOMAttributeMap::Init()
|
||||
{
|
||||
mAttributeCache.Init();
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -96,11 +96,6 @@ public:
|
|||
nsDOMAttributeMap(Element *aContent);
|
||||
virtual ~nsDOMAttributeMap();
|
||||
|
||||
/**
|
||||
* Initialize the map. Must be called before the map is used.
|
||||
*/
|
||||
bool Init();
|
||||
|
||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||
|
||||
// nsIDOMNamedNodeMap interface
|
||||
|
|
|
@ -2615,10 +2615,6 @@ nsGenericElement::GetAttributes(nsIDOMNamedNodeMap** aAttributes)
|
|||
|
||||
if (!slots->mAttributeMap) {
|
||||
slots->mAttributeMap = new nsDOMAttributeMap(this);
|
||||
if (!slots->mAttributeMap->Init()) {
|
||||
slots->mAttributeMap = nsnull;
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
}
|
||||
|
||||
NS_ADDREF(*aAttributes = slots->mAttributeMap);
|
||||
|
|
Загрузка…
Ссылка в новой задаче