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:
Mark Banner 2017-08-01 12:40:40 +01:00
parent 4c89c2ef59
commit 79772e1b13
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -4399,7 +4399,7 @@ nsNavHistoryResult::GetSkipTags(bool *aSkipTags)
NS_IMETHODIMP
nsNavHistoryResult::GetSkipDescendantsOnItemRemoval(bool *aSkipDescendantsOnItemRemoval)
{
*aSkipDescendantsOnItemRemoval = false;
*aSkipDescendantsOnItemRemoval = true;
return NS_OK;
}