mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 328496, search results appear multiple times, r+sr=bz
This commit is contained in:
parent
65c400afcf
commit
b8b1062a90
@ -1326,6 +1326,13 @@ nsXULContentBuilder::CreateContainerContentsForQuerySet(nsIContent* aElement,
|
||||
}
|
||||
}
|
||||
|
||||
if (existingmatch) {
|
||||
// remove the generated content for the existing match
|
||||
rv = ReplaceMatch(existingmatch->mResult, nsnull, nsnull, aElement);
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
}
|
||||
|
||||
if (generateContent) {
|
||||
// find the rule that matches. If none match, the content does not
|
||||
// need to be generated
|
||||
|
Loading…
Reference in New Issue
Block a user