mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
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:
parent
a2ad7e6805
commit
3bf4af528c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user