How get nsIView from a nsGenericElement

hap497 <[email protected]> Sun, 25 Apr 2010 18:32:59 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <6047367e-a53b-41d0-9a7c-e1723da69e43@t14g2000prm.googlegroups.com>
Hi,

If I have a pointer to nsGenericElement, how can I get a nsIView of
the element?
I have looked at nsGenericElement.h , but I can't find any method
which does it?
http://mxr.mozilla.org/mozilla1.9.1/source/content/base/src/nsGenericElement.h

Thank you.