mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 540183 - possible crash fix; check for root frame. r=roc
This commit is contained in:
parent
ef56830e01
commit
76eb061f48
@ -730,7 +730,11 @@ void nsDocAccessible::GetBoundsRect(nsRect& aBounds, nsIFrame** aRelativeFrame)
|
||||
if (sf) {
|
||||
scrollPort = sf->GetScrollPortRect();
|
||||
} else {
|
||||
scrollPort = presShell->GetRootFrame()->GetRect();
|
||||
nsIFrame* rootFrame = presShell->GetRootFrame();
|
||||
if (!rootFrame) {
|
||||
return;
|
||||
}
|
||||
scrollPort = rootFrame->GetRect();
|
||||
}
|
||||
|
||||
if (parentDoc) { // After first time thru loop
|
||||
|
Loading…
Reference in New Issue
Block a user