diff --git a/content/xul/content/src/nsXULElement.cpp b/content/xul/content/src/nsXULElement.cpp index 8698410df2da..de5860d17c23 100644 --- a/content/xul/content/src/nsXULElement.cpp +++ b/content/xul/content/src/nsXULElement.cpp @@ -1878,7 +1878,7 @@ nsXULElement::AppendChildTo(nsIContent* aKid, PRBool aNotify) NS_PRECONDITION((nsnull != aKid) && (aKid != NS_STATIC_CAST(nsIStyledContent*, this)), "null ptr"); - if (! mChildren) { + if (!mChildren) { rv = NS_NewISupportsArray(getter_AddRefs(mChildren)); if (NS_FAILED(rv)) return rv; } diff --git a/layout/xul/base/src/nsBoxFrame.cpp b/layout/xul/base/src/nsBoxFrame.cpp index 76d513028118..8d43264d4231 100644 --- a/layout/xul/base/src/nsBoxFrame.cpp +++ b/layout/xul/base/src/nsBoxFrame.cpp @@ -231,7 +231,16 @@ nsBoxFrame::Init(nsIPresContext* aPresContext, nsSpaceManager* spaceManager = new nsSpaceManager(this); mInner->mSpaceManager = spaceManager; + +#ifdef DEBUG_evaughan + // This function is incredibly expensive in profiles. Unless it can be optimized, and + // because it's being used for debug purposes only, this call is being commented out. + // Contact hyatt@netscape.com if you have any questions. Do not put it back in + // until the speed issues with the pseudostyle probes have been resolved, as this + // call substantially impacts box performance. mInner->UpdatePseudoElements(aPresContext); +#endif + mInner->mHorizontal = GetInitialAlignment(); return rv; } diff --git a/rdf/content/src/nsXULElement.cpp b/rdf/content/src/nsXULElement.cpp index 8698410df2da..de5860d17c23 100644 --- a/rdf/content/src/nsXULElement.cpp +++ b/rdf/content/src/nsXULElement.cpp @@ -1878,7 +1878,7 @@ nsXULElement::AppendChildTo(nsIContent* aKid, PRBool aNotify) NS_PRECONDITION((nsnull != aKid) && (aKid != NS_STATIC_CAST(nsIStyledContent*, this)), "null ptr"); - if (! mChildren) { + if (!mChildren) { rv = NS_NewISupportsArray(getter_AddRefs(mChildren)); if (NS_FAILED(rv)) return rv; }