mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 9489. Use nsAutoVoidArray for collecting classes to avoid excessive heap use.
This commit is contained in:
parent
1f400f3b8e
commit
0698de9566
@ -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…
Reference in New Issue
Block a user