On May 26, 9:24 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> ken wrote:
> > Sorry, I am still confused. Where is the implementation of
> > 'mPresContext->SetTextZoom(aTextZoom);' which trigges a restyle and
> > reflow?
>
> nsPresContext::SetTextZoom.  Did you try doing a text search on the
> source tree, e.g. usinghttp://mxr.mozilla.org/?
>
>  From that point you can trace things down.  The restyle will eventually
> happen via ProcessRestyledFrames in nsCSSFrameConstructor.
>
> -Boris

Boris,

Thank you. Can you please tell me how how does 'mTextZoom' being
used?  What is that being use to deterimed what is the font size to be
painted for each text in the document?

I look at the source of nsDocumentViewer,
http://lxr.mozilla.org/seamonkey/source/layout/base/nsDocumentViewer.cpp#2564

I don't see how mTextSize is being used? I only see get/set method for
it? But how is that being use for layout? (e.g. determine which font
size to be used for each text in the document?

_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to