Fix for bugs 9601 and 9698.

git-svn-id: svn://10.0.0.236/trunk@39339 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com 1999-07-14 19:21:27 +00:00
parent 00ede18950
commit 082dac3d45
2 changed files with 26 additions and 24 deletions

View File

@ -4605,18 +4605,19 @@ nsCSSFrameConstructor::ContentRemoved(nsIPresContext* aPresContext,
if (childFrame) {
#ifdef INCLUDE_XUL
nsCOMPtr<nsIAtom> tag;
if (!aContainer) return NS_ERROR_NULL_POINTER;
aContainer->GetTag(*getter_AddRefs(tag));
if (tag.get() == nsXULAtoms::treechildren ||
tag.get() == nsXULAtoms::treeitem) {
// Convert to a tree row group frame.
nsIFrame* parentFrame;
childFrame->GetParent(&parentFrame);
nsTreeRowGroupFrame* treeRowGroup = (nsTreeRowGroupFrame*)parentFrame;
if (treeRowGroup && treeRowGroup->IsLazy()) {
treeRowGroup->OnContentRemoved(*aPresContext, childFrame);
return NS_OK;
if (aContainer) {
nsCOMPtr<nsIAtom> tag;
aContainer->GetTag(*getter_AddRefs(tag));
if (tag.get() == nsXULAtoms::treechildren ||
tag.get() == nsXULAtoms::treeitem) {
// Convert to a tree row group frame.
nsIFrame* parentFrame;
childFrame->GetParent(&parentFrame);
nsTreeRowGroupFrame* treeRowGroup = (nsTreeRowGroupFrame*)parentFrame;
if (treeRowGroup && treeRowGroup->IsLazy()) {
treeRowGroup->OnContentRemoved(*aPresContext, childFrame);
return NS_OK;
}
}
}
#endif // INCLUDE_XUL

View File

@ -4605,18 +4605,19 @@ nsCSSFrameConstructor::ContentRemoved(nsIPresContext* aPresContext,
if (childFrame) {
#ifdef INCLUDE_XUL
nsCOMPtr<nsIAtom> tag;
if (!aContainer) return NS_ERROR_NULL_POINTER;
aContainer->GetTag(*getter_AddRefs(tag));
if (tag.get() == nsXULAtoms::treechildren ||
tag.get() == nsXULAtoms::treeitem) {
// Convert to a tree row group frame.
nsIFrame* parentFrame;
childFrame->GetParent(&parentFrame);
nsTreeRowGroupFrame* treeRowGroup = (nsTreeRowGroupFrame*)parentFrame;
if (treeRowGroup && treeRowGroup->IsLazy()) {
treeRowGroup->OnContentRemoved(*aPresContext, childFrame);
return NS_OK;
if (aContainer) {
nsCOMPtr<nsIAtom> tag;
aContainer->GetTag(*getter_AddRefs(tag));
if (tag.get() == nsXULAtoms::treechildren ||
tag.get() == nsXULAtoms::treeitem) {
// Convert to a tree row group frame.
nsIFrame* parentFrame;
childFrame->GetParent(&parentFrame);
nsTreeRowGroupFrame* treeRowGroup = (nsTreeRowGroupFrame*)parentFrame;
if (treeRowGroup && treeRowGroup->IsLazy()) {
treeRowGroup->OnContentRemoved(*aPresContext, childFrame);
return NS_OK;
}
}
}
#endif // INCLUDE_XUL