Enable refresh after document is loaded

git-svn-id: svn://10.0.0.236/trunk@7261 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1998-08-04 21:16:13 +00:00
parent 736e58effc
commit f6db301b4d
2 changed files with 20 additions and 0 deletions

View File

@@ -29,6 +29,7 @@
#include "nsIHTMLCSSStyleSheet.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsIViewManager.h"
// XXX TODO:
@@ -262,6 +263,15 @@ nsImageDocument::StartLayout()
cx->GetVisibleArea(r);
shell->ResizeReflow(r.width, r.height);
NS_RELEASE(cx);
// Now trigger a refresh
// XXX It's unfortunate that this has to be here
nsIViewManager* vm = shell->GetViewManager();
if (nsnull != vm) {
vm->EnableRefresh();
NS_RELEASE(vm);
}
NS_RELEASE(shell);
}
}