bug 12002: Resizing a frameset by moving the splitter was causing rapid reflows bug was not updating the corresponding views. This change forces an update, which improves perceived performance. r=Troy

This commit is contained in:
pollmann%netscape.com 2000-04-05 00:10:26 +00:00
Родитель 074f4defbb
Коммит 43e5d18972
2 изменённых файлов: 18 добавлений и 0 удалений

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

@ -1480,6 +1480,15 @@ nsHTMLFramesetFrame::MouseDrag(nsIPresContext* aPresContext,
nsCOMPtr<nsIPresShell> shell;
aPresContext->GetShell(getter_AddRefs(shell));
shell->ResizeReflow(mTopLevelFrameset->mRect.width, mTopLevelFrameset->mRect.height);
nsCOMPtr<nsIViewManager> vm;
shell->GetViewManager(getter_AddRefs(vm));
if (vm) {
nsIView* root;
vm->GetRootView(root);
if (root) {
vm->UpdateView(root, NS_VMREFRESH_IMMEDIATE | NS_VMREFRESH_AUTO_DOUBLE_BUFFER);
}
}
}
}

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

@ -1480,6 +1480,15 @@ nsHTMLFramesetFrame::MouseDrag(nsIPresContext* aPresContext,
nsCOMPtr<nsIPresShell> shell;
aPresContext->GetShell(getter_AddRefs(shell));
shell->ResizeReflow(mTopLevelFrameset->mRect.width, mTopLevelFrameset->mRect.height);
nsCOMPtr<nsIViewManager> vm;
shell->GetViewManager(getter_AddRefs(vm));
if (vm) {
nsIView* root;
vm->GetRootView(root);
if (root) {
vm->UpdateView(root, NS_VMREFRESH_IMMEDIATE | NS_VMREFRESH_AUTO_DOUBLE_BUFFER);
}
}
}
}