bug 107900, r=jag, sr=ben, add toolbarbutton and button to lazy elements

that don't have their contents built right away
This commit is contained in:
pchen%netscape.com 2001-11-10 00:13:24 +00:00
parent a2ad7e6805
commit 3bf4af528c

View File

@ -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;