зеркало из https://github.com/mozilla/pjs.git
Bug 578696 part 2. Make nsXMLEventsManager inherit from nsStubDocumentObserver. r=sicking
This commit is contained in:
Родитель
c73bd48306
Коммит
17811f12e2
|
@ -315,10 +315,6 @@ void nsXMLEventsManager::AddListeners(nsIDocument* aDocument)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
nsXMLEventsManager::BeginUpdate(nsIDocument* aDocument, nsUpdateType aUpdateType) {}
|
|
||||||
void
|
|
||||||
nsXMLEventsManager::EndUpdate(nsIDocument* aDocument, nsUpdateType aUpdateType) {}
|
|
||||||
void
|
void
|
||||||
nsXMLEventsManager::NodeWillBeDestroyed(const nsINode* aNode)
|
nsXMLEventsManager::NodeWillBeDestroyed(const nsINode* aNode)
|
||||||
{
|
{
|
||||||
|
@ -327,29 +323,12 @@ nsXMLEventsManager::NodeWillBeDestroyed(const nsINode* aNode)
|
||||||
mListeners.Clear();
|
mListeners.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
nsXMLEventsManager::BeginLoad(nsIDocument* aDocument) {}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
nsXMLEventsManager::EndLoad(nsIDocument* aDocument)
|
nsXMLEventsManager::EndLoad(nsIDocument* aDocument)
|
||||||
{
|
{
|
||||||
AddListeners(aDocument);
|
AddListeners(aDocument);
|
||||||
}
|
}
|
||||||
NS_IMPL_NSIDOCUMENTOBSERVER_STATE_STUB(nsXMLEventsManager)
|
|
||||||
void
|
|
||||||
nsXMLEventsManager::CharacterDataWillChange(nsIDocument* aDocument,
|
|
||||||
nsIContent* aContent,
|
|
||||||
CharacterDataChangeInfo* aInfo) {}
|
|
||||||
void
|
|
||||||
nsXMLEventsManager::CharacterDataChanged(nsIDocument* aDocument,
|
|
||||||
nsIContent* aContent,
|
|
||||||
CharacterDataChangeInfo* aInfo) {}
|
|
||||||
void
|
|
||||||
nsXMLEventsManager::AttributeWillChange(nsIDocument* aDocument,
|
|
||||||
nsIContent* aContent,
|
|
||||||
PRInt32 aNameSpaceID,
|
|
||||||
nsIAtom* aAttribute,
|
|
||||||
PRInt32 aModType) {}
|
|
||||||
void
|
void
|
||||||
nsXMLEventsManager::AttributeChanged(nsIDocument* aDocument,
|
nsXMLEventsManager::AttributeChanged(nsIDocument* aDocument,
|
||||||
nsIContent* aContent,
|
nsIContent* aContent,
|
||||||
|
@ -437,11 +416,3 @@ nsXMLEventsManager::ContentRemoved(nsIDocument* aDocument,
|
||||||
ContentRemoved(aDocument, aChild, aChild->GetChildAt(i), i);
|
ContentRemoved(aDocument, aChild, aChild->GetChildAt(i), i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
nsXMLEventsManager::ParentChainChanged(nsIContent *aContent)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMPL_NSIDOCUMENTOBSERVER_STYLE_STUB(nsXMLEventsManager)
|
|
||||||
|
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
#include "nsIDOMEventListener.h"
|
#include "nsIDOMEventListener.h"
|
||||||
#include "nsInterfaceHashtable.h"
|
#include "nsInterfaceHashtable.h"
|
||||||
#include "nsIAtom.h"
|
#include "nsIAtom.h"
|
||||||
|
#include "nsStubDocumentObserver.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The implementation of the XML Events Basic profile
|
* The implementation of the XML Events Basic profile
|
||||||
|
@ -89,12 +90,18 @@ private:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class nsXMLEventsManager : public nsIDocumentObserver {
|
class nsXMLEventsManager : public nsStubDocumentObserver {
|
||||||
public:
|
public:
|
||||||
nsXMLEventsManager();
|
nsXMLEventsManager();
|
||||||
~nsXMLEventsManager();
|
~nsXMLEventsManager();
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
NS_DECL_NSIDOCUMENTOBSERVER
|
|
||||||
|
NS_DECL_NSIMUTATIONOBSERVER_NODEWILLBEDESTROYED
|
||||||
|
virtual void EndLoad(nsIDocument* aDocument);
|
||||||
|
NS_DECL_NSIMUTATIONOBSERVER_ATTRIBUTECHANGED
|
||||||
|
NS_DECL_NSIMUTATIONOBSERVER_CONTENTAPPENDED
|
||||||
|
NS_DECL_NSIMUTATIONOBSERVER_CONTENTINSERTED
|
||||||
|
NS_DECL_NSIMUTATIONOBSERVER_CONTENTREMOVED
|
||||||
|
|
||||||
void AddXMLEventsContent(nsIContent * aContent);
|
void AddXMLEventsContent(nsIContent * aContent);
|
||||||
void RemoveXMLEventsContent(nsIContent * aContent);
|
void RemoveXMLEventsContent(nsIContent * aContent);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче