зеркало из https://github.com/mozilla/pjs.git
Bug 338568 - filter failure fallback not working with <a> content. r+sr=roc
This commit is contained in:
Родитель
cce1d49d68
Коммит
971af49c20
|
@ -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
|
||||
|
|
|
@ -268,8 +268,7 @@ nsSVGGenericContainerFrame::NotifyRedrawUnsuspended()
|
|||
NS_IMETHODIMP
|
||||
nsSVGGenericContainerFrame::GetBBox(nsIDOMSVGRect **_retval)
|
||||
{
|
||||
*_retval = nsnull;
|
||||
return NS_ERROR_FAILURE;
|
||||
return nsSVGUtils::GetBBox(&mFrames, _retval);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
|
Загрузка…
Ссылка в новой задаче