mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 756576 - nsDOMAttributeMap::Init should be removed. r=bsmedberg
This commit is contained in:
parent
d4be5d850a
commit
d6ece97cda
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user