ok done Simon reviewed 5870. choffman approved for M5

This commit is contained in:
mjudge%netscape.com 1999-05-03 21:52:19 +00:00
Родитель 1617a3f8e2
Коммит f9a664a948
2 изменённых файлов: 18 добавлений и 22 удалений

Просмотреть файл

@ -2247,25 +2247,23 @@ void nsEditor::HACKForceRedraw()
// of an error in Gecko which is not rendering the
// document after a change via the DOM - gpk 2/11/99
// BEGIN HACK!!!
nsIPresShell* shell = nsnull;
nsCOMPtr<nsIPresShell> shell;
GetPresShell(&shell);
if (nsnull != shell) {
nsIViewManager* viewmgr = nsnull;;
nsIView* view = nsnull;
GetPresShell(getter_AddRefs(shell));
if (shell) {
nsCOMPtr<nsIViewManager> viewmgr;
nsCOMPtr<nsIView> view;
shell->GetViewManager(&viewmgr);
if (nsnull != viewmgr) {
viewmgr->GetRootView(view);
if (nsnull != view) {
shell->GetViewManager(getter_AddRefs(viewmgr));
if (viewmgr) {
viewmgr->GetRootView(*getter_AddRefs(view));
if (view) {
viewmgr->UpdateView(view,nsnull,NS_VMREFRESH_IMMEDIATE);
}
NS_RELEASE(viewmgr);
}
}
// END HACK
#endif
}

Просмотреть файл

@ -2247,25 +2247,23 @@ void nsEditor::HACKForceRedraw()
// of an error in Gecko which is not rendering the
// document after a change via the DOM - gpk 2/11/99
// BEGIN HACK!!!
nsIPresShell* shell = nsnull;
nsCOMPtr<nsIPresShell> shell;
GetPresShell(&shell);
if (nsnull != shell) {
nsIViewManager* viewmgr = nsnull;;
nsIView* view = nsnull;
GetPresShell(getter_AddRefs(shell));
if (shell) {
nsCOMPtr<nsIViewManager> viewmgr;
nsCOMPtr<nsIView> view;
shell->GetViewManager(&viewmgr);
if (nsnull != viewmgr) {
viewmgr->GetRootView(view);
if (nsnull != view) {
shell->GetViewManager(getter_AddRefs(viewmgr));
if (viewmgr) {
viewmgr->GetRootView(*getter_AddRefs(view));
if (view) {
viewmgr->UpdateView(view,nsnull,NS_VMREFRESH_IMMEDIATE);
}
NS_RELEASE(viewmgr);
}
}
// END HACK
#endif
}