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

This commit is contained in:
waterson%netscape.com 1999-12-01 03:27:25 +00:00
parent 1f400f3b8e
commit 0698de9566
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))) {