зеркало из https://github.com/mozilla/pjs.git
Bug 378900 - Use NS_DECL_NSIMUTATIONOBSERVER macros where possible. r+sr=tor
This commit is contained in:
Родитель
377b1073e4
Коммит
76555fdba1
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче