зеркало из https://github.com/mozilla/gecko-dev.git
Bug 604056 - nsIDocumentObserver methods should be declared with a macro. r+a=bz
This commit is contained in:
Родитель
67ba886ab7
Коммит
f991894377
|
@ -233,36 +233,73 @@ public:
|
|||
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDocumentObserver, NS_IDOCUMENT_OBSERVER_IID)
|
||||
|
||||
#define NS_DECL_NSIDOCUMENTOBSERVER \
|
||||
virtual void BeginUpdate(nsIDocument* aDocument, nsUpdateType aUpdateType);\
|
||||
virtual void EndUpdate(nsIDocument* aDocument, nsUpdateType aUpdateType);\
|
||||
virtual void BeginLoad(nsIDocument* aDocument); \
|
||||
virtual void EndLoad(nsIDocument* aDocument); \
|
||||
#define NS_DECL_NSIDOCUMENTOBSERVER_BEGINUPDATE \
|
||||
virtual void BeginUpdate(nsIDocument* aDocument, \
|
||||
nsUpdateType aUpdateType);
|
||||
|
||||
#define NS_DECL_NSIDOCUMENTOBSERVER_ENDUPDATE \
|
||||
virtual void EndUpdate(nsIDocument* aDocument, nsUpdateType aUpdateType);
|
||||
|
||||
#define NS_DECL_NSIDOCUMENTOBSERVER_BEGINLOAD \
|
||||
virtual void BeginLoad(nsIDocument* aDocument);
|
||||
|
||||
#define NS_DECL_NSIDOCUMENTOBSERVER_ENDLOAD \
|
||||
virtual void EndLoad(nsIDocument* aDocument);
|
||||
|
||||
#define NS_DECL_NSIDOCUMENTOBSERVER_CONTENTSTATESCHANGED \
|
||||
virtual void ContentStatesChanged(nsIDocument* aDocument, \
|
||||
nsIContent* aContent1, \
|
||||
nsIContent* aContent2, \
|
||||
PRInt32 aStateMask); \
|
||||
PRInt32 aStateMask);
|
||||
|
||||
#define NS_DECL_NSIDOCUMENTOBSERVER_DOCUMENTSTATESCHANGED \
|
||||
virtual void DocumentStatesChanged(nsIDocument* aDocument, \
|
||||
PRInt32 aStateMask); \
|
||||
PRInt32 aStateMask);
|
||||
|
||||
#define NS_DECL_NSIDOCUMENTOBSERVER_STYLESHEETADDED \
|
||||
virtual void StyleSheetAdded(nsIDocument* aDocument, \
|
||||
nsIStyleSheet* aStyleSheet, \
|
||||
PRBool aDocumentSheet); \
|
||||
PRBool aDocumentSheet);
|
||||
|
||||
#define NS_DECL_NSIDOCUMENTOBSERVER_STYLESHEETREMOVED \
|
||||
virtual void StyleSheetRemoved(nsIDocument* aDocument, \
|
||||
nsIStyleSheet* aStyleSheet, \
|
||||
PRBool aDocumentSheet); \
|
||||
PRBool aDocumentSheet);
|
||||
|
||||
#define NS_DECL_NSIDOCUMENTOBSERVER_STYLESHEETAPPLICABLESTATECHANGED \
|
||||
virtual void StyleSheetApplicableStateChanged(nsIDocument* aDocument, \
|
||||
nsIStyleSheet* aStyleSheet,\
|
||||
PRBool aApplicable); \
|
||||
PRBool aApplicable);
|
||||
|
||||
#define NS_DECL_NSIDOCUMENTOBSERVER_STYLERULECHANGED \
|
||||
virtual void StyleRuleChanged(nsIDocument* aDocument, \
|
||||
nsIStyleSheet* aStyleSheet, \
|
||||
nsIStyleRule* aOldStyleRule, \
|
||||
nsIStyleRule* aNewStyleRule); \
|
||||
nsIStyleRule* aNewStyleRule);
|
||||
|
||||
#define NS_DECL_NSIDOCUMENTOBSERVER_STYLERULEADDED \
|
||||
virtual void StyleRuleAdded(nsIDocument* aDocument, \
|
||||
nsIStyleSheet* aStyleSheet, \
|
||||
nsIStyleRule* aStyleRule); \
|
||||
nsIStyleRule* aStyleRule);
|
||||
|
||||
#define NS_DECL_NSIDOCUMENTOBSERVER_STYLERULEREMOVED \
|
||||
virtual void StyleRuleRemoved(nsIDocument* aDocument, \
|
||||
nsIStyleSheet* aStyleSheet, \
|
||||
nsIStyleRule* aStyleRule); \
|
||||
nsIStyleRule* aStyleRule);
|
||||
|
||||
#define NS_DECL_NSIDOCUMENTOBSERVER \
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_BEGINUPDATE \
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_ENDUPDATE \
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_BEGINLOAD \
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_ENDLOAD \
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_CONTENTSTATESCHANGED \
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_DOCUMENTSTATESCHANGED \
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_STYLESHEETADDED \
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_STYLESHEETREMOVED \
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_STYLESHEETAPPLICABLESTATECHANGED \
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_STYLERULECHANGED \
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_STYLERULEADDED \
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_STYLERULEREMOVED \
|
||||
NS_DECL_NSIMUTATIONOBSERVER
|
||||
|
||||
|
||||
|
|
|
@ -145,8 +145,8 @@ class nsContentSink : public nsICSSLoaderObserver,
|
|||
void NotifyAppend(nsIContent* aContent, PRUint32 aStartIndex);
|
||||
|
||||
// nsIDocumentObserver
|
||||
virtual void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
|
||||
virtual void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_BEGINUPDATE
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_ENDUPDATE
|
||||
|
||||
virtual void UpdateChildCounts() = 0;
|
||||
|
||||
|
|
|
@ -297,13 +297,11 @@ public:
|
|||
NS_DECL_NSIDOMSTYLESHEETLIST
|
||||
|
||||
// nsIDocumentObserver
|
||||
virtual void NodeWillBeDestroyed(const nsINode *aNode);
|
||||
virtual void StyleSheetAdded(nsIDocument *aDocument,
|
||||
nsIStyleSheet* aStyleSheet,
|
||||
PRBool aDocumentSheet);
|
||||
virtual void StyleSheetRemoved(nsIDocument *aDocument,
|
||||
nsIStyleSheet* aStyleSheet,
|
||||
PRBool aDocumentSheet);
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_STYLESHEETADDED
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_STYLESHEETREMOVED
|
||||
|
||||
// nsIMutationObserver
|
||||
NS_DECL_NSIMUTATIONOBSERVER_NODEWILLBEDESTROYED
|
||||
|
||||
nsIStyleSheet* GetItemAt(PRUint32 aIndex);
|
||||
|
||||
|
|
|
@ -96,8 +96,11 @@ public:
|
|||
~nsXMLEventsManager();
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
// nsIDocumentObserver
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_ENDLOAD
|
||||
|
||||
// nsIMutationObserver
|
||||
NS_DECL_NSIMUTATIONOBSERVER_NODEWILLBEDESTROYED
|
||||
virtual void EndLoad(nsIDocument* aDocument);
|
||||
NS_DECL_NSIMUTATIONOBSERVER_ATTRIBUTECHANGED
|
||||
NS_DECL_NSIMUTATIONOBSERVER_CONTENTAPPENDED
|
||||
NS_DECL_NSIMUTATIONOBSERVER_CONTENTINSERTED
|
||||
|
|
|
@ -52,8 +52,8 @@ public:
|
|||
NS_DECL_ISUPPORTS
|
||||
|
||||
// nsIDocumentObserver
|
||||
virtual void BeginUpdate(nsIDocument* aDocument, nsUpdateType aUpdateType);
|
||||
virtual void EndUpdate(nsIDocument* aDocument, nsUpdateType aUpdateType);
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_BEGINUPDATE
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_ENDUPDATE
|
||||
|
||||
// nsIMutationObserver
|
||||
NS_DECL_NSIMUTATIONOBSERVER_ATTRIBUTECHANGED
|
||||
|
@ -61,7 +61,7 @@ public:
|
|||
NS_DECL_NSIMUTATIONOBSERVER_CONTENTINSERTED
|
||||
NS_DECL_NSIMUTATIONOBSERVER_CONTENTREMOVED
|
||||
NS_DECL_NSIMUTATIONOBSERVER_NODEWILLBEDESTROYED
|
||||
|
||||
|
||||
/**
|
||||
* This will prettyprint the document if the document is loaded in a
|
||||
* displayed window.
|
||||
|
|
|
@ -895,35 +895,18 @@ public:
|
|||
NS_IMETHOD CheckVisibility(nsIDOMNode *node, PRInt16 startOffset, PRInt16 EndOffset, PRBool *_retval);
|
||||
|
||||
// nsIDocumentObserver
|
||||
virtual void BeginUpdate(nsIDocument* aDocument, nsUpdateType aUpdateType);
|
||||
virtual void EndUpdate(nsIDocument* aDocument, nsUpdateType aUpdateType);
|
||||
virtual void BeginLoad(nsIDocument* aDocument);
|
||||
virtual void EndLoad(nsIDocument* aDocument);
|
||||
virtual void ContentStatesChanged(nsIDocument* aDocument,
|
||||
nsIContent* aContent1,
|
||||
nsIContent* aContent2,
|
||||
PRInt32 aStateMask);
|
||||
virtual void DocumentStatesChanged(nsIDocument* aDocument,
|
||||
PRInt32 aStateMask);
|
||||
virtual void StyleSheetAdded(nsIDocument* aDocument,
|
||||
nsIStyleSheet* aStyleSheet,
|
||||
PRBool aDocumentSheet);
|
||||
virtual void StyleSheetRemoved(nsIDocument* aDocument,
|
||||
nsIStyleSheet* aStyleSheet,
|
||||
PRBool aDocumentSheet);
|
||||
virtual void StyleSheetApplicableStateChanged(nsIDocument* aDocument,
|
||||
nsIStyleSheet* aStyleSheet,
|
||||
PRBool aApplicable);
|
||||
virtual void StyleRuleChanged(nsIDocument* aDocument,
|
||||
nsIStyleSheet* aStyleSheet,
|
||||
nsIStyleRule* aOldStyleRule,
|
||||
nsIStyleRule* aNewStyleRule);
|
||||
virtual void StyleRuleAdded(nsIDocument* aDocument,
|
||||
nsIStyleSheet* aStyleSheet,
|
||||
nsIStyleRule* aStyleRule);
|
||||
virtual void StyleRuleRemoved(nsIDocument* aDocument,
|
||||
nsIStyleSheet* aStyleSheet,
|
||||
nsIStyleRule* aStyleRule);
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_BEGINUPDATE
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_ENDUPDATE
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_BEGINLOAD
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_ENDLOAD
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_CONTENTSTATESCHANGED
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_DOCUMENTSTATESCHANGED
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_STYLESHEETADDED
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_STYLESHEETREMOVED
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_STYLESHEETAPPLICABLESTATECHANGED
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_STYLERULECHANGED
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_STYLERULEADDED
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_STYLERULEREMOVED
|
||||
|
||||
// nsIMutationObserver
|
||||
NS_DECL_NSIMUTATIONOBSERVER_CHARACTERDATACHANGED
|
||||
|
|
|
@ -72,10 +72,7 @@ class nsTreeContentView : public nsINativeTreeView,
|
|||
NS_DECL_NSITREECONTENTVIEW
|
||||
|
||||
// nsIDocumentObserver
|
||||
virtual void ContentStatesChanged(nsIDocument* aDocument,
|
||||
nsIContent* aContent1,
|
||||
nsIContent* aContent2,
|
||||
PRInt32 aStateMask);
|
||||
NS_DECL_NSIDOCUMENTOBSERVER_CONTENTSTATESCHANGED
|
||||
NS_DECL_NSIMUTATIONOBSERVER_ATTRIBUTECHANGED
|
||||
NS_DECL_NSIMUTATIONOBSERVER_CONTENTAPPENDED
|
||||
NS_DECL_NSIMUTATIONOBSERVER_CONTENTINSERTED
|
||||
|
|
Загрузка…
Ссылка в новой задаче