зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1516366 - Move NS_DOCUMENT_NOTIFY_OBSERVERS to nsIDocument.h. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15364
This commit is contained in:
Родитель
1165f7d4ed
Коммит
e3568cb8ad
|
@ -113,17 +113,6 @@ class nsDocument : public nsIDocument {
|
|||
protected:
|
||||
friend class nsNodeUtils;
|
||||
|
||||
#define NS_DOCUMENT_NOTIFY_OBSERVERS(func_, params_) \
|
||||
do { \
|
||||
NS_OBSERVER_ARRAY_NOTIFY_XPCOM_OBSERVERS(mObservers, nsIDocumentObserver, \
|
||||
func_, params_); \
|
||||
/* FIXME(emilio): Apparently we can keep observing from the BFCache? That \
|
||||
looks bogus. */ \
|
||||
if (nsIPresShell* shell = GetObservingShell()) { \
|
||||
shell->func_ params_; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
explicit nsDocument(const char* aContentType);
|
||||
virtual ~nsDocument();
|
||||
|
||||
|
|
|
@ -463,6 +463,17 @@ class nsIDocument : public nsINode,
|
|||
|
||||
NS_DECL_ADDSIZEOFEXCLUDINGTHIS
|
||||
|
||||
#define NS_DOCUMENT_NOTIFY_OBSERVERS(func_, params_) \
|
||||
do { \
|
||||
NS_OBSERVER_ARRAY_NOTIFY_XPCOM_OBSERVERS(mObservers, nsIDocumentObserver, \
|
||||
func_, params_); \
|
||||
/* FIXME(emilio): Apparently we can keep observing from the BFCache? That \
|
||||
looks bogus. */ \
|
||||
if (nsIPresShell* shell = GetObservingShell()) { \
|
||||
shell->func_ params_; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#ifdef MOZILLA_INTERNAL_API
|
||||
nsIDocument();
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче