зеркало из https://github.com/mozilla/gecko-dev.git
Bug 261974 - async svg painting. Patch by afri, r=tor.
This commit is contained in:
Родитель
0eb195b8d6
Коммит
804a84b831
|
@ -541,7 +541,7 @@ nsSVGSVGElement::ForceRedraw()
|
|||
NS_ASSERTION(vm, "need viewmanager to unsuspend redraw");
|
||||
if (!vm) return NS_ERROR_FAILURE;
|
||||
|
||||
vm->UpdateAllViews(NS_VMREFRESH_IMMEDIATE);
|
||||
vm->EnableRefresh(NS_VMREFRESH_IMMEDIATE);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -890,7 +890,7 @@ nsSVGOuterSVGFrame::InvalidateRegion(nsISVGRendererRegion* region, PRBool bRedra
|
|||
if (sink)
|
||||
region->GetRectangleScans(sink);
|
||||
}
|
||||
vm->EndUpdateViewBatch(bRedraw ? NS_VMREFRESH_IMMEDIATE : NS_VMREFRESH_NO_SYNC);
|
||||
vm->EndUpdateViewBatch(NS_VMREFRESH_NO_SYNC);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -981,11 +981,7 @@ nsSVGOuterSVGFrame::UnsuspendRedraw()
|
|||
|
||||
NS_ENSURE_TRUE(mPresShell, NS_ERROR_FAILURE);
|
||||
|
||||
// don't do an immediate refresh if painting is suppressed by the shell
|
||||
PRBool suppressed = PR_FALSE;
|
||||
mPresShell->IsPaintingSuppressed(&suppressed);
|
||||
vm->EndUpdateViewBatch(suppressed ?
|
||||
NS_VMREFRESH_NO_SYNC : NS_VMREFRESH_IMMEDIATE);
|
||||
vm->EndUpdateViewBatch(NS_VMREFRESH_NO_SYNC);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче