mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 18:50:08 +00:00
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:
parent
d17bcebfe3
commit
bc16c6794e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user