Prevent synchronous paints during reflows bug 20150; r=rods@netscape.com

Call SetTextAlign within SetupDC instead of in each DrawString on WIN32. bug 26973; r=rods@netscape.com
This commit is contained in:
kmcclusk@netscape.com
2000-02-09 15:48:01 +00:00
parent 781122f08d
commit 08010069e2
28 changed files with 113 additions and 50 deletions

View File

@@ -7285,7 +7285,19 @@ ApplyRenderingChangeToTree(nsIPresContext* aPresContext,
}
if (viewManager) {
viewManager->EndUpdateViewBatch();
nsCOMPtr<nsIPresShell> presShell;
nsresult rv = aPresContext->GetShell(getter_AddRefs(presShell));
if (NS_SUCCEEDED(rv)) {
PRBool isReflowLocked = PR_FALSE;
presShell->IsReflowLocked(&isReflowLocked);
if (isReflowLocked) {
viewManager->EndUpdateViewBatch(NS_VMREFRESH_NO_SYNC);
} else {
viewManager->EndUpdateViewBatch(NS_VMREFRESH_IMMEDIATE);
}
} else {
viewManager->EndUpdateViewBatch(NS_VMREFRESH_NO_SYNC);
}
// viewManager->Composite();
NS_RELEASE(viewManager);
}