Fix for bug 36849: Script animation that changes location and clip simultaneously no longer will flicker.

ApplyRenderingChangeToTree now always does a NO_SYNC update of the views where it used to sometimes do a SYNC update. b=36849 r=kmcclusk
This commit is contained in:
attinasi%netscape.com 2000-07-28 21:54:49 +00:00
Родитель 6b6d0581db
Коммит c9c32a64e4
2 изменённых файлов: 2 добавлений и 28 удалений

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

@ -9712,20 +9712,7 @@ ApplyRenderingChangeToTree(nsIPresContext* aPresContext,
}
if (viewManager) {
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();
viewManager->EndUpdateViewBatch(NS_VMREFRESH_NO_SYNC);
NS_RELEASE(viewManager);
}
}

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

@ -9712,20 +9712,7 @@ ApplyRenderingChangeToTree(nsIPresContext* aPresContext,
}
if (viewManager) {
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();
viewManager->EndUpdateViewBatch(NS_VMREFRESH_NO_SYNC);
NS_RELEASE(viewManager);
}
}