diff --git a/content/xul/content/src/nsXULElement.cpp b/content/xul/content/src/nsXULElement.cpp index f232c4fcff90..ce3d97090bbc 100644 --- a/content/xul/content/src/nsXULElement.cpp +++ b/content/xul/content/src/nsXULElement.cpp @@ -2477,7 +2477,7 @@ RDFElementImpl::SetAttribute(PRInt32 aNameSpaceID, } if (NS_SUCCEEDED(rv) && aNotify && ElementIsInDocument()) { - mDocument->AttributeChanged(NS_STATIC_CAST(nsIStyledContent*, this), aName, NS_STYLE_HINT_UNKNOWN); + mDocument->AttributeChanged(NS_STATIC_CAST(nsIStyledContent*, this), aNameSpaceID, aName, NS_STYLE_HINT_UNKNOWN); } return rv; @@ -2699,7 +2699,7 @@ RDFElementImpl::UnsetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName, PRBool aNot // Notify document if (NS_SUCCEEDED(rv) && aNotify && (nsnull != mDocument)) { mDocument->AttributeChanged(NS_STATIC_CAST(nsIStyledContent*, this), - aName, + aNameSpaceID, aName, NS_STYLE_HINT_UNKNOWN); } } diff --git a/content/xul/document/src/nsXULDocument.cpp b/content/xul/document/src/nsXULDocument.cpp index 1863140219a1..ade0575f385c 100644 --- a/content/xul/document/src/nsXULDocument.cpp +++ b/content/xul/document/src/nsXULDocument.cpp @@ -301,6 +301,7 @@ public: NS_IMETHOD ContentStatesChanged(nsIContent* aContent1, nsIContent* aContent2); NS_IMETHOD AttributeChanged(nsIContent* aChild, + PRInt32 aNameSpaceID, nsIAtom* aAttribute, PRInt32 aHint); // See nsStyleConsts fot hint values @@ -1700,6 +1701,7 @@ XULDocumentImpl::ContentStatesChanged(nsIContent* aContent1, nsIContent* aConten NS_IMETHODIMP XULDocumentImpl::AttributeChanged(nsIContent* aElement, + PRInt32 aNameSpaceID, nsIAtom* aAttribute, PRInt32 aHint) { @@ -1724,7 +1726,7 @@ XULDocumentImpl::AttributeChanged(nsIContent* aElement, // Now notify external observers for (PRInt32 i = 0; i < mObservers.Count(); i++) { nsIDocumentObserver* observer = (nsIDocumentObserver*)mObservers[i]; - observer->AttributeChanged(this, aElement, aAttribute, aHint); + observer->AttributeChanged(this, aElement, aNameSpaceID, aAttribute, aHint); if (observer != (nsIDocumentObserver*)mObservers.ElementAt(i)) { i--; } diff --git a/rdf/content/src/nsRDFElement.cpp b/rdf/content/src/nsRDFElement.cpp index f232c4fcff90..ce3d97090bbc 100644 --- a/rdf/content/src/nsRDFElement.cpp +++ b/rdf/content/src/nsRDFElement.cpp @@ -2477,7 +2477,7 @@ RDFElementImpl::SetAttribute(PRInt32 aNameSpaceID, } if (NS_SUCCEEDED(rv) && aNotify && ElementIsInDocument()) { - mDocument->AttributeChanged(NS_STATIC_CAST(nsIStyledContent*, this), aName, NS_STYLE_HINT_UNKNOWN); + mDocument->AttributeChanged(NS_STATIC_CAST(nsIStyledContent*, this), aNameSpaceID, aName, NS_STYLE_HINT_UNKNOWN); } return rv; @@ -2699,7 +2699,7 @@ RDFElementImpl::UnsetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName, PRBool aNot // Notify document if (NS_SUCCEEDED(rv) && aNotify && (nsnull != mDocument)) { mDocument->AttributeChanged(NS_STATIC_CAST(nsIStyledContent*, this), - aName, + aNameSpaceID, aName, NS_STYLE_HINT_UNKNOWN); } } diff --git a/rdf/content/src/nsXULDocument.cpp b/rdf/content/src/nsXULDocument.cpp index 1863140219a1..ade0575f385c 100644 --- a/rdf/content/src/nsXULDocument.cpp +++ b/rdf/content/src/nsXULDocument.cpp @@ -301,6 +301,7 @@ public: NS_IMETHOD ContentStatesChanged(nsIContent* aContent1, nsIContent* aContent2); NS_IMETHOD AttributeChanged(nsIContent* aChild, + PRInt32 aNameSpaceID, nsIAtom* aAttribute, PRInt32 aHint); // See nsStyleConsts fot hint values @@ -1700,6 +1701,7 @@ XULDocumentImpl::ContentStatesChanged(nsIContent* aContent1, nsIContent* aConten NS_IMETHODIMP XULDocumentImpl::AttributeChanged(nsIContent* aElement, + PRInt32 aNameSpaceID, nsIAtom* aAttribute, PRInt32 aHint) { @@ -1724,7 +1726,7 @@ XULDocumentImpl::AttributeChanged(nsIContent* aElement, // Now notify external observers for (PRInt32 i = 0; i < mObservers.Count(); i++) { nsIDocumentObserver* observer = (nsIDocumentObserver*)mObservers[i]; - observer->AttributeChanged(this, aElement, aAttribute, aHint); + observer->AttributeChanged(this, aElement, aNameSpaceID, aAttribute, aHint); if (observer != (nsIDocumentObserver*)mObservers.ElementAt(i)) { i--; } diff --git a/rdf/content/src/nsXULElement.cpp b/rdf/content/src/nsXULElement.cpp index f232c4fcff90..ce3d97090bbc 100644 --- a/rdf/content/src/nsXULElement.cpp +++ b/rdf/content/src/nsXULElement.cpp @@ -2477,7 +2477,7 @@ RDFElementImpl::SetAttribute(PRInt32 aNameSpaceID, } if (NS_SUCCEEDED(rv) && aNotify && ElementIsInDocument()) { - mDocument->AttributeChanged(NS_STATIC_CAST(nsIStyledContent*, this), aName, NS_STYLE_HINT_UNKNOWN); + mDocument->AttributeChanged(NS_STATIC_CAST(nsIStyledContent*, this), aNameSpaceID, aName, NS_STYLE_HINT_UNKNOWN); } return rv; @@ -2699,7 +2699,7 @@ RDFElementImpl::UnsetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName, PRBool aNot // Notify document if (NS_SUCCEEDED(rv) && aNotify && (nsnull != mDocument)) { mDocument->AttributeChanged(NS_STATIC_CAST(nsIStyledContent*, this), - aName, + aNameSpaceID, aName, NS_STYLE_HINT_UNKNOWN); } } diff --git a/widget/src/mac/nsMenu.cpp b/widget/src/mac/nsMenu.cpp index e370c4d27bdd..27799f55d67a 100644 --- a/widget/src/mac/nsMenu.cpp +++ b/widget/src/mac/nsMenu.cpp @@ -1377,6 +1377,7 @@ NS_IMETHODIMP nsMenu::AttributeChanged( nsIDocument * aDocument, nsIContent * aContent, + PRInt32 aNameSpaceID, nsIAtom * aAttribute, PRInt32 aHint) { diff --git a/widget/src/mac/nsMenu.h b/widget/src/mac/nsMenu.h index d5b6008c0c6b..1577dacb7378 100644 --- a/widget/src/mac/nsMenu.h +++ b/widget/src/mac/nsMenu.h @@ -106,6 +106,7 @@ public: nsIContent* aContent2); NS_IMETHOD AttributeChanged(nsIDocument *aDocument, nsIContent* aContent, + PRInt32 aNameSpaceID, nsIAtom* aAttribute, PRInt32 aHint); NS_IMETHOD ContentAppended(nsIDocument *aDocument, diff --git a/xpfe/appshell/src/nsWebShellWindow.cpp b/xpfe/appshell/src/nsWebShellWindow.cpp index 33f0d304cfee..d89eea84362c 100644 --- a/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/xpfe/appshell/src/nsWebShellWindow.cpp @@ -2460,6 +2460,7 @@ nsWebShellWindow::ContentStatesChanged(nsIDocument *aDocument, NS_IMETHODIMP nsWebShellWindow::AttributeChanged(nsIDocument *aDocument, nsIContent* aContent, + PRInt32 aNameSpaceID, nsIAtom* aAttribute, PRInt32 aHint) { diff --git a/xpfe/appshell/src/nsWebShellWindow.h b/xpfe/appshell/src/nsWebShellWindow.h index fcef6245f551..8f48b3ce0263 100644 --- a/xpfe/appshell/src/nsWebShellWindow.h +++ b/xpfe/appshell/src/nsWebShellWindow.h @@ -197,6 +197,7 @@ public: nsIContent* aContent2); NS_IMETHOD AttributeChanged(nsIDocument *aDocument, nsIContent* aContent, + PRInt32 aNameSpaceID, nsIAtom* aAttribute, PRInt32 aHint); NS_IMETHOD ContentAppended(nsIDocument *aDocument,