In article <[EMAIL PROTECTED]>,
 Boris Zbarsky <[EMAIL PROTECTED]> wrote:

> Henri Sivonen wrote:
> >> What if there is no frame?
> > 
> > But there are for (at least non-SVG) elements that are being rendered, 
> > right?
> 
> Yes.

Good.

> A visibility:hidden frame can have descendants that render.

OK. I guess I'll drop the visibility: hidden; test.

> > I am assuming it always exists for elements that have a defined and 
> > non-null contentDocument property and are neither display: none; nor 
> > visibility: hidden;.
> > 
> > Is that a wrong assumption?
> 
> Yes.  HTML iframes that are kids of an SVG element will have a defined and 
> non-null contentDocument, and may have any values of display and visibility.

OK, but I am not walking into SVG subtrees anyway.

> >>> Does an element even have a primary nsIFrame if it has display: none;?
> >> No.
> > 
> > That's a sufficient test then?
> 
> Test for what?

For testing that the element and the subtree is being rendered 
(excluding cases that have SVG ancestry).

-- 
Henri Sivonen
[EMAIL PROTECTED]
http://hsivonen.iki.fi/
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to