mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
Bug 1371679
- Use skipDescendantsOnItemRemoval in nsNavHistoryResult to improve performance when deleting bookmark folders. r=mak
MozReview-Commit-ID: FaotgKVaEmH --HG-- extra : rebase_source : f75a5ab77bdfd887dfe432e3a994b3c902b0b291
This commit is contained in:
parent
4c89c2ef59
commit
79772e1b13
@ -51,7 +51,7 @@ bool SkipTags(nsCOMPtr<nsINavBookmarkObserver> obs) {
|
||||
}
|
||||
bool SkipDescendants(nsCOMPtr<nsINavBookmarkObserver> obs) {
|
||||
bool skipDescendantsOnItemRemoval = false;
|
||||
(void) obs->GetSkipTags(&skipDescendantsOnItemRemoval);
|
||||
(void) obs->GetSkipDescendantsOnItemRemoval(&skipDescendantsOnItemRemoval);
|
||||
return skipDescendantsOnItemRemoval;
|
||||
}
|
||||
|
||||
|
@ -4399,7 +4399,7 @@ nsNavHistoryResult::GetSkipTags(bool *aSkipTags)
|
||||
NS_IMETHODIMP
|
||||
nsNavHistoryResult::GetSkipDescendantsOnItemRemoval(bool *aSkipDescendantsOnItemRemoval)
|
||||
{
|
||||
*aSkipDescendantsOnItemRemoval = false;
|
||||
*aSkipDescendantsOnItemRemoval = true;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user