nsresult nsSVGSwitchElement::RemoveChildAt(PRUint32 aIndex, PRBool aNotify, PRBool aMutationEvent) { NS_ASSERTION(aMutationEvent, "Someone tried to inhibit mutations on switch child removal."); nsresult rv = nsSVGSwitchElementBase::RemoveChildAt(aIndex, aNotify, aMutationEvent); if (NS_SUCCEEDED(rv)) { MaybeInvalidate(); } return rv; }
nsresult nsSVGSwitchElement::InsertChildAt(nsIContent* aKid, PRUint32 aIndex, PRBool aNotify) { nsresult rv = nsSVGSwitchElementBase::InsertChildAt(aKid, aIndex, aNotify); if (NS_SUCCEEDED(rv)) { MaybeInvalidate(); } return rv; }
void SVGTests::UnsetAttr(const nsIAtom* aAttribute) { for (uint32_t i = 0; i < ArrayLength(sStringListNames); i++) { if (aAttribute == *sStringListNames[i]) { mStringListAttributes[i].Clear(); MaybeInvalidate(); return; } } }
bool SVGTests::ParseConditionalProcessingAttribute(nsIAtom* aAttribute, const nsAString& aValue, nsAttrValue& aResult) { for (uint32_t i = 0; i < ArrayLength(sStringListNames); i++) { if (aAttribute == *sStringListNames[i]) { nsresult rv = mStringListAttributes[i].SetValue(aValue); if (NS_FAILED(rv)) { mStringListAttributes[i].Clear(); } MaybeInvalidate(); return true; } } return false; }
void SVGSwitchElement::RemoveChildAt(uint32_t aIndex, bool aNotify) { SVGSwitchElementBase::RemoveChildAt(aIndex, aNotify); MaybeInvalidate(); }
void SVGSwitchElement::RemoveChildNode(nsIContent* aKid, bool aNotify) { SVGSwitchElementBase::RemoveChildNode(aKid, aNotify); MaybeInvalidate(); }