Bug 261974 - async svg painting. Patch by afri, r=tor.

This commit is contained in:
tor%cs.brown.edu 2004-10-04 23:16:57 +00:00
Родитель 0eb195b8d6
Коммит 804a84b831
2 изменённых файлов: 3 добавлений и 7 удалений

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

@ -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;
}