Kill nsAttributeChildList and use nsChildContentList instead. b=360319 r/sr=jst

This commit is contained in:
cvshook@sicking.cc
2006-11-11 00:28:20 +00:00
parent 016b87784f
commit 64b9b05599
9 changed files with 50 additions and 124 deletions

View File

@@ -135,8 +135,17 @@ DebugListContentTree(nsIContent* aElement)
PRInt32 nsIContent::sTabFocusModel = eTabFocus_any;
PRBool nsIContent::sTabFocusModelAppliesToXUL = PR_FALSE;
nsresult NS_NewContentIterator(nsIContentIterator** aInstancePtrResult);
//----------------------------------------------------------------------
nsINode::nsSlots::~nsSlots()
{
if (mChildNodes) {
mChildNodes->DropReference();
NS_RELEASE(mChildNodes);
}
}
//----------------------------------------------------------------------
nsINode::~nsINode()
@@ -876,10 +885,6 @@ nsGenericElement::nsDOMSlots::nsDOMSlots(PtrBits aFlags)
nsGenericElement::nsDOMSlots::~nsDOMSlots()
{
if (mChildNodes) {
mChildNodes->DropReference();
}
if (mStyle) {
mStyle->DropReference();
}
@@ -1228,7 +1233,7 @@ nsGenericElement::GetAttributes(nsIDOMNamedNodeMap** aAttributes)
nsresult
nsGenericElement::GetChildNodes(nsIDOMNodeList** aChildNodes)
{
nsDOMSlots *slots = GetDOMSlots();
nsSlots *slots = GetSlots();
if (!slots) {
return NS_ERROR_OUT_OF_MEMORY;