Bug 9489. Use nsAutoVoidArray for collecting classes to avoid excessive heap use.

git-svn-id: svn://10.0.0.236/trunk@54855 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com 1999-12-01 03:27:25 +00:00
parent c9ce94ef8e
commit 6bdf96a634
3 changed files with 3 additions and 3 deletions

View File

@ -2675,7 +2675,7 @@ CSSRuleProcessor::RulesMatching(nsIPresContext* aPresContext,
nsIAtom* tagAtom;
aContent->GetTag(tagAtom);
nsIAtom* idAtom = nsnull;
nsVoidArray classArray; // XXX need to recycle this guy (or make nsAutoVoidArray?)
nsAutoVoidArray classArray;
nsIStyledContent* styledContent;
if (NS_SUCCEEDED(aContent->QueryInterface(nsIStyledContent::GetIID(), (void**)&styledContent))) {

View File

@ -2675,7 +2675,7 @@ CSSRuleProcessor::RulesMatching(nsIPresContext* aPresContext,
nsIAtom* tagAtom;
aContent->GetTag(tagAtom);
nsIAtom* idAtom = nsnull;
nsVoidArray classArray; // XXX need to recycle this guy (or make nsAutoVoidArray?)
nsAutoVoidArray classArray;
nsIStyledContent* styledContent;
if (NS_SUCCEEDED(aContent->QueryInterface(nsIStyledContent::GetIID(), (void**)&styledContent))) {

View File

@ -2675,7 +2675,7 @@ CSSRuleProcessor::RulesMatching(nsIPresContext* aPresContext,
nsIAtom* tagAtom;
aContent->GetTag(tagAtom);
nsIAtom* idAtom = nsnull;
nsVoidArray classArray; // XXX need to recycle this guy (or make nsAutoVoidArray?)
nsAutoVoidArray classArray;
nsIStyledContent* styledContent;
if (NS_SUCCEEDED(aContent->QueryInterface(nsIStyledContent::GetIID(), (void**)&styledContent))) {