Fix for PDT+ 26618. Typing for hyatt, r=saari

git-svn-id: svn://10.0.0.236/trunk@61366 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
saari%netscape.com
2000-02-19 23:33:51 +00:00
parent 888bcc2eb8
commit 5eaa6343ea

View File

@@ -791,7 +791,8 @@ nsTreeRowGroupFrame::PositionChanged(nsIPresContext* aPresContext, PRInt32 aOldI
mTopFrame = mBottomFrame = nsnull; // Make sure everything is cleared out.
// Force a reflow.
OnContentAdded(aPresContext);
nsTreeFrame* treeFrame = (nsTreeFrame*) tableFrame;
MarkTreeAsDirty(aPresContext, treeFrame);
return NS_OK;
}
@@ -1092,7 +1093,7 @@ nsTreeRowGroupFrame::ReflowAfterRowLayout(nsIPresContext* aPresContext,
// Dirty the tree for another reflow.
nsTableFrame* tableFrame;
nsTableFrame::GetTableFrame(this, tableFrame);
MarkTreeAsDirty(aPresContext, (nsTreeFrame*)tableFrame);
}
}
@@ -1411,6 +1412,10 @@ void nsTreeRowGroupFrame::OnContentAdded(nsIPresContext* aPresContext)
nsTreeFrame* treeFrame = (nsTreeFrame*) tableFrame;
MarkTreeAsDirty(aPresContext, treeFrame);
nsCOMPtr<nsIPresShell> shell;
aPresContext->GetShell(getter_AddRefs(shell));
shell->ProcessReflowCommands(PR_FALSE);
}
void nsTreeRowGroupFrame::OnContentInserted(nsIPresContext* aPresContext, nsIFrame* aNextSibling, PRInt32 aIndex)
@@ -1550,7 +1555,7 @@ nsTreeRowGroupFrame::ReflowScrollbar(nsIPresContext* aPresContext)
if (!mScrollbar)
return;
nsTableFrame* tableFrame;
nsTableFrame::GetTableFrame(this, tableFrame);
nsTreeFrame* treeFrame = (nsTreeFrame*)tableFrame;
@@ -1637,8 +1642,14 @@ nsTreeRowGroupFrame::ReflowScrollbar(nsIPresContext* aPresContext)
maxpos = ch;
}
// Make sure our position is accurate.
scrollbarContent->SetAttribute(kNameSpaceID_None, nsXULAtoms::maxpos, maxpos, PR_TRUE);
// Make sure our position is accurate
nsAutoString value;
scrollbarContent->GetAttribute(kNameSpaceID_None,
nsXULAtoms::maxpos, value);
if(value != maxpos){
scrollbarContent->SetAttribute(kNameSpaceID_None, nsXULAtoms::maxpos, maxpos, PR_TRUE);
}
}
void nsTreeRowGroupFrame::SetContentChain(nsISupportsArray* aContentChain)