mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
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:
parent
472d45bc48
commit
b8cfc3cf0c
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user