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:
parent
00ede18950
commit
082dac3d45
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user