Bug 307314 - handle null region in tspan region computation. r=afri

This commit is contained in:
tor%cs.brown.edu 2005-09-07 15:41:41 +00:00
parent fd16fc6244
commit 951cf898bc

View File

@ -347,8 +347,10 @@ nsSVGTSpanFrame::GetCoveredRegion()
if (SVGFrame) {
nsCOMPtr<nsISVGRendererRegion> dirty_region = SVGFrame->GetCoveredRegion();
if (accu_region) {
nsCOMPtr<nsISVGRendererRegion> temp = dont_AddRef(accu_region);
dirty_region->Combine(temp, &accu_region);
if (dirty_region) {
nsCOMPtr<nsISVGRendererRegion> temp = dont_AddRef(accu_region);
dirty_region->Combine(temp, &accu_region);
}
}
else {
accu_region = dirty_region;