mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 392797. Don't fake the results in nsTextAccessible::GetFrame(). r=surkov, a=dsicore
This commit is contained in:
parent
5522d65cfa
commit
3c165b5853
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user