зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
6b6d0581db
Коммит
c9c32a64e4
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче