Bug 338122, Crash [@ nsIMEStateManager::IsActive] when window gets removed on mousedown at button, r+sr=roc

git-svn-id: svn://10.0.0.236/trunk@197990 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Olli.Pettay%helsinki.fi
2006-05-19 10:26:44 +00:00
parent d34771b2e5
commit fe4e09853e
14 changed files with 49 additions and 54 deletions

View File

@@ -1654,7 +1654,7 @@ nsGfxScrollFrameInner::CreateAnonymousContent(nsISupportsArray& aAnonymousChildr
}
nsNodeInfoManager *nodeInfoManager =
presContext->GetDocument()->NodeInfoManager();
presContext->Document()->NodeInfoManager();
nsCOMPtr<nsINodeInfo> nodeInfo;
nodeInfoManager->GetNodeInfo(nsXULAtoms::scrollbar, nsnull,
kNameSpaceID_XUL, getter_AddRefs(nodeInfo));
@@ -2105,7 +2105,7 @@ nsGfxScrollFrameInner::IsLTR() const
if (mIsRoot) {
// If we're the root scrollframe, we need the root element's style data.
nsPresContext *presContext = mOuter->GetPresContext();
nsIDocument *document = presContext->GetDocument();
nsIDocument *document = presContext->Document();
nsIContent *root = document->GetRootContent();
// But for HTML we want the body element.