mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Fixing a stupid leak from mousewheel scrolling. r=pinkerton.
This commit is contained in:
parent
120e64e906
commit
52e5ffae3c
@ -2346,7 +2346,7 @@ nsIFrame*
|
|||||||
nsEventStateManager::GetDocumentFrame(nsIPresContext* aPresContext)
|
nsEventStateManager::GetDocumentFrame(nsIPresContext* aPresContext)
|
||||||
{
|
{
|
||||||
nsCOMPtr<nsIPresShell> presShell;
|
nsCOMPtr<nsIPresShell> presShell;
|
||||||
nsIDocument* aDocument;
|
nsCOMPtr<nsIDocument> aDocument;
|
||||||
nsIFrame* aFrame;
|
nsIFrame* aFrame;
|
||||||
nsIView* aView;
|
nsIView* aView;
|
||||||
|
|
||||||
@ -2357,8 +2357,9 @@ nsEventStateManager::GetDocumentFrame(nsIPresContext* aPresContext)
|
|||||||
return nsnull;
|
return nsnull;
|
||||||
}
|
}
|
||||||
|
|
||||||
presShell->GetDocument(&aDocument);
|
presShell->GetDocument(getter_AddRefs(aDocument));
|
||||||
presShell->GetPrimaryFrameFor(aDocument->GetRootContent(), &aFrame);
|
nsCOMPtr<nsIContent> rootContent(dont_AddRef(aDocument->GetRootContent()));
|
||||||
|
presShell->GetPrimaryFrameFor(rootContent, &aFrame);
|
||||||
|
|
||||||
aFrame->GetView(aPresContext, &aView);
|
aFrame->GetView(aPresContext, &aView);
|
||||||
PR_LOG(MOUSEWHEEL, PR_LOG_DEBUG, ("GetDocumentFrame: got document view = %p\n", aView));
|
PR_LOG(MOUSEWHEEL, PR_LOG_DEBUG, ("GetDocumentFrame: got document view = %p\n", aView));
|
||||||
|
@ -2346,7 +2346,7 @@ nsIFrame*
|
|||||||
nsEventStateManager::GetDocumentFrame(nsIPresContext* aPresContext)
|
nsEventStateManager::GetDocumentFrame(nsIPresContext* aPresContext)
|
||||||
{
|
{
|
||||||
nsCOMPtr<nsIPresShell> presShell;
|
nsCOMPtr<nsIPresShell> presShell;
|
||||||
nsIDocument* aDocument;
|
nsCOMPtr<nsIDocument> aDocument;
|
||||||
nsIFrame* aFrame;
|
nsIFrame* aFrame;
|
||||||
nsIView* aView;
|
nsIView* aView;
|
||||||
|
|
||||||
@ -2357,8 +2357,9 @@ nsEventStateManager::GetDocumentFrame(nsIPresContext* aPresContext)
|
|||||||
return nsnull;
|
return nsnull;
|
||||||
}
|
}
|
||||||
|
|
||||||
presShell->GetDocument(&aDocument);
|
presShell->GetDocument(getter_AddRefs(aDocument));
|
||||||
presShell->GetPrimaryFrameFor(aDocument->GetRootContent(), &aFrame);
|
nsCOMPtr<nsIContent> rootContent(dont_AddRef(aDocument->GetRootContent()));
|
||||||
|
presShell->GetPrimaryFrameFor(rootContent, &aFrame);
|
||||||
|
|
||||||
aFrame->GetView(aPresContext, &aView);
|
aFrame->GetView(aPresContext, &aView);
|
||||||
PR_LOG(MOUSEWHEEL, PR_LOG_DEBUG, ("GetDocumentFrame: got document view = %p\n", aView));
|
PR_LOG(MOUSEWHEEL, PR_LOG_DEBUG, ("GetDocumentFrame: got document view = %p\n", aView));
|
||||||
|
Loading…
Reference in New Issue
Block a user