Bug 331481 - make sure style rule is updated after a presentation

attribute is removed.  patch by roc, r+sr=tor
This commit is contained in:
tor%cs.brown.edu 2006-03-23 19:43:07 +00:00
Родитель 9ec052e6b4
Коммит 701b146652
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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<nsIEventListenerManager> manager;
GetListenerManager(PR_FALSE, getter_AddRefs(manager));