Bug 338568 - filter failure fallback not working with <a> content. r+sr=roc

git-svn-id: svn://10.0.0.236/trunk@198112 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tor%cs.brown.edu
2006-05-21 13:48:43 +00:00
parent e55839c9f9
commit 69bb284c46
2 changed files with 8 additions and 8 deletions

View File

@@ -462,16 +462,20 @@ nsSVGFilterFrame::GetInvalidationRegion(nsIFrame *aTarget,
CallQueryInterface(aTarget, &svg);
svg->SetMatrixPropagation(PR_FALSE);
svg->NotifyCanvasTMChanged(PR_TRUE);
PRUint16 type;
mFilterUnits->GetAnimVal(&type);
float x, y, width, height;
nsCOMPtr<nsIDOMSVGRect> bbox;
svg->SetMatrixPropagation(PR_FALSE);
svg->NotifyCanvasTMChanged(PR_TRUE);
svg->GetBBox(getter_AddRefs(bbox));
svg->SetMatrixPropagation(PR_TRUE);
svg->NotifyCanvasTMChanged(PR_TRUE);
nsSVGFilterElement *filter = NS_STATIC_CAST(nsSVGFilterElement*, mContent);
nsSVGLength2 *tmpX, *tmpY, *tmpWidth, *tmpHeight;
tmpX = &filter->mLengthAttributes[nsSVGFilterElement::X];
@@ -496,9 +500,6 @@ nsSVGFilterFrame::GetInvalidationRegion(nsIFrame *aTarget,
height = nsSVGUtils::UserSpace(targetContent, tmpHeight);
}
svg->SetMatrixPropagation(PR_TRUE);
svg->NotifyCanvasTMChanged(PR_TRUE);
#ifdef DEBUG_tor
fprintf(stderr, "invalidate box: %f,%f %fx%f\n", x, y, width, height);
#endif

View File

@@ -268,8 +268,7 @@ nsSVGGenericContainerFrame::NotifyRedrawUnsuspended()
NS_IMETHODIMP
nsSVGGenericContainerFrame::GetBBox(nsIDOMSVGRect **_retval)
{
*_retval = nsnull;
return NS_ERROR_FAILURE;
return nsSVGUtils::GetBBox(&mFrames, _retval);
}
//----------------------------------------------------------------------