From 3bf4af528cd6ccc28002ff66bd4eb225ec7fbe17 Mon Sep 17 00:00:00 2001 From: "pchen%netscape.com" Date: Sat, 10 Nov 2001 00:13:24 +0000 Subject: [PATCH] bug 107900, r=jag, sr=ben, add toolbarbutton and button to lazy elements that don't have their contents built right away --- content/xul/templates/src/nsXULContentBuilder.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/content/xul/templates/src/nsXULContentBuilder.cpp b/content/xul/templates/src/nsXULContentBuilder.cpp index 9f010f11bb4f..6ebcd58408e6 100644 --- a/content/xul/templates/src/nsXULContentBuilder.cpp +++ b/content/xul/templates/src/nsXULContentBuilder.cpp @@ -1406,7 +1406,9 @@ nsXULContentBuilder::IsOpen(nsIContent* aElement) // Treat the 'root' element as always open, -unless- it's a // menu/menupopup. We don't need to "fake" these as being open. if ((aElement == mRoot) && (tag.get() != nsXULAtoms::menu) && - (tag.get() != nsXULAtoms::menubutton)) + (tag.get() != nsXULAtoms::menubutton) && + (tag.get() != nsXULAtoms::toolbarbutton) && + (tag.get() != nsXULAtoms::button)) return PR_TRUE; nsAutoString value; @@ -1511,7 +1513,8 @@ nsXULContentBuilder::IsLazyWidgetItem(nsIContent* aElement) if ((tag.get() == nsXULAtoms::tree) || (tag.get() == nsXULAtoms::treeitem) || (tag.get() == nsXULAtoms::menu) || (tag.get() == nsXULAtoms::menulist) || - (tag.get() == nsXULAtoms::menubutton)) + (tag.get() == nsXULAtoms::menubutton) || (tag.get() == nsXULAtoms::toolbarbutton) || + (tag.get() == nsXULAtoms::button)) return PR_TRUE; return PR_FALSE;