NS_IMETHODIMP SVGFEUnstyledLeafFrame::AttributeChanged(PRInt32 aNameSpaceID, nsIAtom* aAttribute, PRInt32 aModType) { SVGFEUnstyledElement *element = static_cast<SVGFEUnstyledElement*>(mContent); if (element->AttributeAffectsRendering(aNameSpaceID, aAttribute)) { nsSVGEffects::InvalidateRenderingObservers(this); } return SVGFEUnstyledLeafFrameBase::AttributeChanged(aNameSpaceID, aAttribute, aModType); }
nsresult SVGFEUnstyledLeafFrame::AttributeChanged(int32_t aNameSpaceID, nsIAtom* aAttribute, int32_t aModType) { SVGFEUnstyledElement *element = static_cast<SVGFEUnstyledElement*>(mContent); if (element->AttributeAffectsRendering(aNameSpaceID, aAttribute)) { MOZ_ASSERT(GetParent()->GetParent()->GetType() == nsGkAtoms::svgFilterFrame, "Observers observe the filter, so that's what we must invalidate"); nsSVGEffects::InvalidateDirectRenderingObservers(GetParent()->GetParent()); } return nsFrame::AttributeChanged(aNameSpaceID, aAttribute, aModType); }