Bug 17680. Only need to add template builders on nodes that are more than -two- levels in from an overlay root. The first ply will be set up in nsXULDocument::OverlayForwardReference::Merge().

This commit is contained in:
waterson%netscape.com 1999-12-08 07:59:12 +00:00
parent d17bcebfe3
commit bc16c6794e
2 changed files with 2 additions and 2 deletions

View File

@ -4462,7 +4462,7 @@ nsXULDocument::ResumeWalk()
if (NS_FAILED(rv)) return rv;
if (indx >= proto->mNumChildren) {
if (element && ((mState == eState_Master) || (mContextStack.Depth() > 1))) {
if (element && ((mState == eState_Master) || (mContextStack.Depth() > 2))) {
// We've processed all of the prototype's children.
// Check the element for a 'datasources' attribute, in
// which case we'll need to create a template builder

View File

@ -4462,7 +4462,7 @@ nsXULDocument::ResumeWalk()
if (NS_FAILED(rv)) return rv;
if (indx >= proto->mNumChildren) {
if (element && ((mState == eState_Master) || (mContextStack.Depth() > 1))) {
if (element && ((mState == eState_Master) || (mContextStack.Depth() > 2))) {
// We've processed all of the prototype's children.
// Check the element for a 'datasources' attribute, in
// which case we'll need to create a template builder