зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
9ec052e6b4
Коммит
701b146652
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче