Bug 195350: First stage of attributes overhaul. New class for storing attributes and children for an element. Use this class for xml elements. Also remove a couple of unneccesary functions from nsIContent.

r=caillon sr=jst
This commit is contained in:
sicking@bigfoot.com
2004-01-15 17:07:27 +00:00
parent 1f59410615
commit 8fcd79abf7
43 changed files with 1826 additions and 1102 deletions

View File

@@ -1594,13 +1594,9 @@ nsXMLContentSink::AddAttributes(const PRUnichar** aAtts,
nameSpacePrefix = nsnull;
}
nsCOMPtr<nsINodeInfo> ni;
mNodeInfoManager->GetNodeInfo(nameAtom, nameSpacePrefix, nameSpaceID,
getter_AddRefs(ni));
NS_ENSURE_TRUE(ni, NS_ERROR_FAILURE);
// Add attribute to content
aContent->SetAttr(ni, nsDependentString(aAtts[1]), PR_FALSE);
aContent->SetAttr(nameSpaceID, nameAtom, nameSpacePrefix,
nsDependentString(aAtts[1]), PR_FALSE);
aAtts += 2;
}