Bug 378900 - Use NS_DECL_NSIMUTATIONOBSERVER macros where possible. r+sr=tor

This commit is contained in:
longsonr%gmail.com 2007-04-27 14:37:15 +00:00
Родитель 377b1073e4
Коммит 76555fdba1
3 изменённых файлов: 14 добавлений и 28 удалений

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

@ -54,13 +54,9 @@ class nsSVGMutationObserver : public nsStubMutationObserver
{
public:
// nsIMutationObserver interface
void AttributeChanged(nsIDocument *aDocument,
nsIContent *aContent,
PRInt32 aNameSpaceID,
nsIAtom *aAttribute,
PRInt32 aModType);
NS_DECL_NSIMUTATIONOBSERVER_ATTRIBUTECHANGED
// nsISupports interface:
// nsISupports interface:
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);
private:
NS_IMETHOD_(nsrefcnt) AddRef() { return 1; }

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

@ -72,16 +72,11 @@ public:
NS_DECL_ISUPPORTS
// nsIMutationObserver
virtual void AttributeChanged(nsIDocument* aDocument, nsIContent* aContent,
PRInt32 aNameSpaceID, nsIAtom* aAttribute,
PRInt32 aModType);
virtual void ContentAppended(nsIDocument* aDocument, nsIContent* aContainer,
PRInt32 aNewIndexInContainer);
virtual void ContentInserted(nsIDocument* aDocument, nsIContent* aContainer,
nsIContent* aChild, PRInt32 aIndexInContainer);
virtual void ContentRemoved(nsIDocument* aDocument, nsIContent* aContainer,
nsIContent* aChild, PRInt32 aIndexInContainer);
virtual void ParentChainChanged(nsIContent *aContent);
NS_DECL_NSIMUTATIONOBSERVER_ATTRIBUTECHANGED
NS_DECL_NSIMUTATIONOBSERVER_CONTENTAPPENDED
NS_DECL_NSIMUTATIONOBSERVER_CONTENTINSERTED
NS_DECL_NSIMUTATIONOBSERVER_CONTENTREMOVED
NS_DECL_NSIMUTATIONOBSERVER_PARENTCHAINCHANGED
private:
nsSVGMarkerFrame *GetMarkerFrame(nsWeakPtr aObservedMarker);

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

@ -91,15 +91,10 @@ public:
NS_DECL_ISUPPORTS
// nsIMutationObserver
virtual void AttributeChanged(nsIDocument* aDocument, nsIContent* aContent,
PRInt32 aNameSpaceID, nsIAtom* aAttribute,
PRInt32 aModType);
virtual void ContentAppended(nsIDocument* aDocument, nsIContent* aContainer,
PRInt32 aNewIndexInContainer);
virtual void ContentInserted(nsIDocument* aDocument, nsIContent* aContainer,
nsIContent* aChild, PRInt32 aIndexInContainer);
virtual void ContentRemoved(nsIDocument* aDocument, nsIContent* aContainer,
nsIContent* aChild, PRInt32 aIndexInContainer);
NS_DECL_NSIMUTATIONOBSERVER_ATTRIBUTECHANGED
NS_DECL_NSIMUTATIONOBSERVER_CONTENTAPPENDED
NS_DECL_NSIMUTATIONOBSERVER_CONTENTINSERTED
NS_DECL_NSIMUTATIONOBSERVER_CONTENTREMOVED
protected:
virtual void DoUpdate() = 0;
@ -178,7 +173,7 @@ public:
nsSVGFilterFrame *GetFilterFrame();
// nsIMutationObserver
virtual void ParentChainChanged(nsIContent *aContent);
NS_DECL_NSIMUTATIONOBSERVER_PARENTCHAINCHANGED
private:
// nsSVGPropertyBase
@ -252,7 +247,7 @@ public:
nsSVGClipPathFrame *GetClipPathFrame();
// nsIMutationObserver
virtual void ParentChainChanged(nsIContent *aContent);
NS_DECL_NSIMUTATIONOBSERVER_PARENTCHAINCHANGED
private:
virtual void DoUpdate();
@ -311,7 +306,7 @@ public:
nsSVGMaskFrame *GetMaskFrame();
// nsIMutationObserver
virtual void ParentChainChanged(nsIContent *aContent);
NS_DECL_NSIMUTATIONOBSERVER_PARENTCHAINCHANGED
private:
virtual void DoUpdate();