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:
parent
c9ce94ef8e
commit
6bdf96a634
@ -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))) {
|
||||
|
||||
@ -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))) {
|
||||
|
||||
@ -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))) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user