Fix for 97062.

Implement a content model view for <outliner>.
r=bryner sr=hyatt
This commit is contained in:
varga@utcru.sk
2001-11-30 04:41:55 +00:00
parent 50fe1e72e0
commit 1d63de26c2
19 changed files with 3500 additions and 84 deletions

View File

@@ -7790,6 +7790,14 @@ nsCSSFrameConstructor::ContentAppended(nsIPresContext* aPresContext,
PRInt32 namespaceID;
bindingManager->ResolveTag(aContainer, &namespaceID, getter_AddRefs(tag));
// Just ignore outliner tags, anyway we don't create any frames for them.
if (tag == nsXULAtoms::outlineritem ||
tag == nsXULAtoms::outlinerseparator ||
tag == nsXULAtoms::outlinerchildren ||
tag == nsXULAtoms::outlinerrow ||
tag == nsXULAtoms::outlinercell)
return NS_OK;
PRBool treeChildren = tag.get() == nsXULAtoms::treechildren;
PRBool treeItem = tag.get() == nsXULAtoms::treeitem;
@@ -8370,6 +8378,14 @@ nsCSSFrameConstructor::ContentInserted(nsIPresContext* aPresContext,
PRInt32 namespaceID;
bindingManager->ResolveTag(aContainer, &namespaceID, getter_AddRefs(tag));
// Just ignore outliner tags, anyway we don't create any frames for them.
if (tag == nsXULAtoms::outlineritem ||
tag == nsXULAtoms::outlinerseparator ||
tag == nsXULAtoms::outlinerchildren ||
tag == nsXULAtoms::outlinerrow ||
tag == nsXULAtoms::outlinercell)
return NS_OK;
PRBool treeChildren = tag && tag.get() == nsXULAtoms::treechildren;
PRBool treeItem = tag && tag.get() == nsXULAtoms::treeitem;
if (treeChildren || treeItem) {
@@ -9228,6 +9244,14 @@ nsCSSFrameConstructor::ContentRemoved(nsIPresContext* aPresContext,
PRInt32 namespaceID;
bindingManager->ResolveTag(aContainer, &namespaceID, getter_AddRefs(tag));
// Just ignore outliner tags, anyway we don't create any frames for them.
if (tag == nsXULAtoms::outlineritem ||
tag == nsXULAtoms::outlinerseparator ||
tag == nsXULAtoms::outlinerchildren ||
tag == nsXULAtoms::outlinerrow ||
tag == nsXULAtoms::outlinercell)
return NS_OK;
PRBool treeChildren = tag && tag.get() == nsXULAtoms::treechildren;
PRBool treeItem = tag && tag.get() == nsXULAtoms::treeitem;