On Tuesday 2008-04-29 09:01 -0700, [EMAIL PROTECTED] wrote:
> Can you please tell me what is the 'frame class' (the class in /layout/
> generic') corresponding to a nsHTMLBodyElement class?

If the page author doesn't change the CSS 'display' property of the
body element, then it defaults to block (see layout/style/html.css),
so the frame is an nsBlockFrame.  If the author changes the
'display' property, it could be something else; see
nsCSSFrameConstructor::ConstructFrameByDisplayType in
layout/base/nsCSSFrameConstructor.cpp (or, for XUL box display
types, ConstructXULFrame).

(Note that some HTML elements, such as form controls, are hard-coded
to a particular frame class; they are constructed in
nsCSSFrameConstructor::ConstructHTMLFrame.)

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to