I need to get the following layout data for an element, and I think 
getting it directly off the primary nsIFrame of the element is probably 
the way to go. (Is it?)
 * Whether the element is being rendered (display: none; or visibility: 
hidden;)
 * The rendering width and height of the element's box in CSS px.
 * The font size in px.

For font size, I see code like this around the codebase:
const nsStyleText* styleText = frame->GetStyleText();

Yet, by searching LXR and grepping my CVS sandbox I can't find the 
definition of the GetStyleText() method. What am I missing?

For the width and height, I suppose I should use GetSize(). Am I right? 
What's the right way to convert twips into CSS px or vice versa?

What's the right way to query display: none; and visibility: hidden;? 
Does an element even have a primary nsIFrame if it has display: none;?

-- 
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