mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Hold some strong references on nsRefreshDriver
This commit is contained in:
parent
8b8084f661
commit
e69b52eac1
2 changed files with 6 additions and 3 deletions
|
|
@ -2409,7 +2409,7 @@ nsDOMWindowUtils::AdvanceTimeAndRefresh(int64_t aMilliseconds)
|
|||
|
||||
nsPresContext* presContext = GetPresContext();
|
||||
if (presContext) {
|
||||
nsRefreshDriver* driver = presContext->RefreshDriver();
|
||||
RefPtr<nsRefreshDriver> driver = presContext->RefreshDriver();
|
||||
driver->AdvanceTimeAndRefresh(aMilliseconds);
|
||||
|
||||
RefPtr<LayerTransactionChild> transaction = GetLayerTransaction();
|
||||
|
|
|
|||
|
|
@ -212,9 +212,12 @@ SVGDocumentWrapper::TickRefreshDriver()
|
|||
nsCOMPtr<nsIPresShell> presShell;
|
||||
mViewer->GetPresShell(getter_AddRefs(presShell));
|
||||
if (presShell) {
|
||||
nsPresContext* presContext = presShell->GetPresContext();
|
||||
RefPtr<nsPresContext> presContext = presShell->GetPresContext();
|
||||
if (presContext) {
|
||||
presContext->RefreshDriver()->DoTick();
|
||||
RefPtr<nsRefreshDriver> driver = presContext->RefreshDriver();
|
||||
if (driver) {
|
||||
driver->DoTick();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue