Bug 478245 - Crash [@ nsEventStateManager::PreHandleEvent], r+sr=dbaron

This commit is contained in:
Olli Pettay
2009-03-11 17:43:08 +02:00
parent 0fa26e0112
commit 0b3823aa3b
19 changed files with 54 additions and 45 deletions

View File

@@ -203,7 +203,7 @@ CanvasFrame::Init(nsIContent* aContent,
{
nsresult rv = nsHTMLContainerFrame::Init(aContent, aParent, aPrevInFlow);
mViewManager = PresContext()->GetViewManager();
mViewManager = PresContext()->GetPresShell()->GetViewManager();
nsIScrollableView* scrollingView = nsnull;
mViewManager->GetRootScrollableView(&scrollingView);