Bug 237957 Set GNOME_ACCESSIBILITY=1, mozilla crash when visiting http://house.sinoi.com/

r  = kyle.yuan@sun.com
sr = henry.jia@sun.com
This commit is contained in:
louie.zhao%sun.com 2004-03-23 03:05:31 +00:00
parent 472d45bc48
commit b8cfc3cf0c

View File

@ -73,11 +73,14 @@ nsAccessibleHyperText::nsAccessibleHyperText(nsIDOMNode* aDomNode, nsIWeakRefere
nsCOMPtr<nsIContent> content(do_QueryInterface(aDomNode));
shell->GetPrimaryFrameFor(content, &frame);
nsIFrame *parentFrame = nsAccessible::GetParentBlockFrame(frame);
nsCOMPtr<nsIPresContext> presContext;
shell->GetPresContext(getter_AddRefs(presContext));
nsIFrame* childFrame = parentFrame->GetFirstChild(nsnull);
PRBool bSave = PR_FALSE;
GetAllTextChildren(presContext, childFrame, aDomNode, bSave);
NS_ASSERTION(parentFrame, "Error: HypeText can't get parent block frame");
if (parentFrame) {
nsCOMPtr<nsIPresContext> presContext;
shell->GetPresContext(getter_AddRefs(presContext));
nsIFrame* childFrame = parentFrame->GetFirstChild(nsnull);
PRBool bSave = PR_FALSE;
GetAllTextChildren(presContext, childFrame, aDomNode, bSave);
}
}
}
}