mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 307314 - handle null region in tspan region computation. r=afri
This commit is contained in:
parent
fd16fc6244
commit
951cf898bc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user