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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user