From 701b14665204a0bd381a732a4b32c9861c57ae29 Mon Sep 17 00:00:00 2001 From: "tor%cs.brown.edu" Date: Thu, 23 Mar 2006 19:43:07 +0000 Subject: [PATCH] Bug 331481 - make sure style rule is updated after a presentation attribute is removed. patch by roc, r+sr=tor --- content/svg/content/src/nsSVGElement.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/svg/content/src/nsSVGElement.cpp b/content/svg/content/src/nsSVGElement.cpp index 87ed9992b104..4658cf217ba5 100644 --- a/content/svg/content/src/nsSVGElement.cpp +++ b/content/svg/content/src/nsSVGElement.cpp @@ -229,6 +229,11 @@ nsresult nsSVGElement::UnsetAttr(PRInt32 aNamespaceID, nsIAtom* aName, PRBool aNotify) { + // If this is an svg presentation attribute, remove rule to force an update + if (aNamespaceID == kNameSpaceID_None && IsAttributeMapped(aName)) { + mContentStyleRule = nsnull; + } + if (aNamespaceID == kNameSpaceID_None && IsEventName(aName)) { nsCOMPtr manager; GetListenerManager(PR_FALSE, getter_AddRefs(manager));