On Sunday 2011-07-31 23:15 +0200, Thomas Bielagk wrote:
> I am debugging Block/Box layouting (bug
> https://bugzilla.mozilla.org/show_bug.cgi?id=625694) and couldn't
> figure how a block does know what it's default size is (especially
> the 100% width).

It's typically computed through a call to the virtual method
nsIFrame::ComputeSize made from nsHTMLReflowState::InitConstraints .

However, in the layout you're debugging, it it likely to be derived
in turn from intrinsic width calculations, such as from
nsIFrame::GetMinWidth / GetPrefWidth.

The box-inside-block interaction tends to live in
nsBoxFrame::Reflow, while the block-inside-box interaction tends to
be handled by nsFrame::DoLayout (and nsFrame::BoxReflow).

-David

(Note:  in English, "layout" is a noun and "lay out" is a verb; you
can turn the verb back into a noun with "laying out" but that's
generally unnecessary given that the word "layout" already exists.)

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