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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user