Alternately, we could even have a pointer to the primary frame in presshell 0 on Element nodes (if we are willing to pay the memory cost). The pointer could be easily maintained from layout and used by GPFF to optimize itself:
if (content->GetFrame() &&
content->GetFrame()->PresContext() == mPresShell->PresContext()){
return content->GetFrame();
}Or even just used by the Element nodes to avoid calling GPFF (since they always call it on PresShell 0).
Thoughts? _______________________________________________ mozilla-layout mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-layout
