Fix for 97062.
Implement a content model view for <outliner>. r=bryner sr=hyatt
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user