Bug 392797. Don't fake the results in nsTextAccessible::GetFrame(). r=surkov, a=dsicore

This commit is contained in:
aaronleventhal@moonset.net 2007-08-20 20:29:00 -07:00
parent 5522d65cfa
commit 3c165b5853

View File

@ -368,16 +368,7 @@ nsIFrame* nsAccessNode::GetFrame()
return nsnull;
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
while (content) {
nsIFrame* frame = shell->GetPrimaryFrameFor(content);
if (frame) {
return frame;
}
nsCOMPtr<nsIContent> tempContent = content->GetParent();
content = tempContent;
}
return nsnull;
return content ? shell->GetPrimaryFrameFor(content) : nsnull;
}
NS_IMETHODIMP