On Sunday 2008-06-08 22:19 -0700, [EMAIL PROTECTED] wrote:
> I am reading the 'Key Data Structures' slide from:
> http://www.mozilla.org/newlayout/doc/gecko-overview.htm
> 
> I am trying to find what is the attribute in Frame which points to
> 'View'?
> 
> I have read,
> http://lxr.mozilla.org/mozilla1.8.0/source/layout/generic/nsIFrame.h
> http://lxr.mozilla.org/mozilla1.8.0/source/layout/xul/base/src/nsBox.h
> http://lxr.mozilla.org/mozilla1.8.0/source/layout/generic/nsFrame.h
> 
> But I don't see nsFrame or its parent class (nsBox, nsIFrame) which
> has an attribute to 'View'.
> 
> Can you please tell me where is the attribute in Framae which links to
> View?

See at the implementation of the GetView method in nsFrame.cpp on
mozilla-central:
http://hg.mozilla.org/mozilla-central/index.cgi/file/377f2910d180/layout/generic/nsFrame.cpp#l3381
or the equivalent on the 1.8.0 branch:
http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/layout/generic/nsFrame.cpp&rev=3.574.2.4.2.8#2330

(They're pretty much the same, and either answers your question.)

-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