Renamed FindFrameWithContent() to GetPrimaryFrameFor()

This commit is contained in:
troy@netscape.com
1998-12-29 04:45:18 +00:00
parent df038c599f
commit 54df92ac77
24 changed files with 162 additions and 79 deletions

View File

@@ -1888,8 +1888,10 @@ static void RefreshContentFrames(nsIPresContext& aPresContext,
//-------------------------------------
// Undraw all the current selected frames
// XXX Kludge for now
nsIPresShell * shell = aPresContext.GetShell();
nsIFrame * rootFrame = shell->GetRootFrame();
nsIPresShell *shell = aPresContext.GetShell();
nsIFrame *rootFrame;
shell->GetRootFrame(rootFrame);
PRBool foundStart = PR_FALSE;
for (PRInt32 i=0;i<fMax;i++) {
@@ -2102,8 +2104,9 @@ static void resetContentTrackers() {
static void RefreshFromContentTrackers(nsIPresContext& aPresContext) {
PRInt32 i;
nsIPresShell * shell = aPresContext.GetShell();
nsIFrame * rootFrame = shell->GetRootFrame();
nsIPresShell *shell = aPresContext.GetShell();
nsIFrame *rootFrame;
shell->GetRootFrame(rootFrame);
for (i=0;i<fTrackerRemoveListMax;i++) {
RefreshAllContentFrames(rootFrame, fTrackerContentArrayRemoveList[i]);
//ForceDrawFrame((nsFrame *)shell->FindFrameWithContent(fTrackerContentArrayRemoveList[i]));