browser_object_frames: auto-select top frame if there are no visible frames
commitf8bf1c1d5cb5c869057da62acaa0dd03053cd075
authorJeremy Maitin-Shepard <jeremy@jeremyms.com>
Tue, 30 Jun 2009 21:44:23 +0000 (30 14:44 -0700)
committerJeremy Maitin-Shepard <jeremy@jeremyms.com>
Tue, 30 Jun 2009 21:44:23 +0000 (30 14:44 -0700)
treec9864c8a711fa23798cb6169fb3db580fb9f7b3f
parentc61f428e0285f3282dbed3ca8e359566ef7faaa1
browser_object_frames: auto-select top frame if there are no visible frames

The top frame is automatically selected without using the hints system
if there are no FRAME elements and no visible IFRAME elements.  The
visibility of IFRAME elements is determined by checking the "display"
and "visibility" attributes of the computed style.

Previously, even invisible IFRAME elements were sufficient to
trigger use of the hints system.
modules/element.js