Bug 423071 - SVG bad clippath rendering when changed via DOM. r+sr=roc,a1.9=blocking1.9+

This commit is contained in:
longsonr@gmail.com 2008-03-17 12:55:36 -07:00
parent b0ceaff10c
commit 27cd40b49e

View File

@ -300,11 +300,9 @@ nsSVGClipPathProperty::DoUpdate()
if (!svgChildFrame)
return;
if (svgChildFrame->HasValidCoveredRect()) {
nsSVGOuterSVGFrame *outerSVGFrame = nsSVGUtils::GetOuterSVGFrame(mFrame);
if (outerSVGFrame)
outerSVGFrame->InvalidateRect(mFrame->GetRect());
}
nsSVGOuterSVGFrame *outerSVGFrame = nsSVGUtils::GetOuterSVGFrame(mFrame);
if (outerSVGFrame)
outerSVGFrame->InvalidateRect(svgChildFrame->GetCoveredRegion());
}
void
@ -359,11 +357,9 @@ nsSVGMaskProperty::DoUpdate()
if (!svgChildFrame)
return;
if (svgChildFrame->HasValidCoveredRect()) {
nsSVGOuterSVGFrame *outerSVGFrame = nsSVGUtils::GetOuterSVGFrame(mFrame);
if (outerSVGFrame)
outerSVGFrame->InvalidateRect(mFrame->GetRect());
}
nsSVGOuterSVGFrame *outerSVGFrame = nsSVGUtils::GetOuterSVGFrame(mFrame);
if (outerSVGFrame)
outerSVGFrame->InvalidateRect(svgChildFrame->GetCoveredRegion());
}
void