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


git-svn-id: svn://10.0.0.236/trunk@60242 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kmcclusk%netscape.com
2000-02-09 15:48:01 +00:00
parent 47e2d0e686
commit 31beeacc3d
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);
}