Bug 181808: Use macros to declare and implement nsIDocumentObserver

r=caillon sr=bz
This commit is contained in:
sicking%bigfoot.com 2005-11-02 07:38:33 +00:00
Родитель f0a479c7c2
Коммит b44092cb06
2 изменённых файлов: 6 добавлений и 137 удалений

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

@ -205,6 +205,11 @@ nsXPathResult::SnapshotItem(PRUint32 aIndex, nsIDOMNode **aResult)
return NS_OK;
}
NS_IMPL_NSIDOCUMENTOBSERVER_LOAD_STUB(nsXPathResult)
NS_IMPL_NSIDOCUMENTOBSERVER_REFLOW_STUB(nsXPathResult)
NS_IMPL_NSIDOCUMENTOBSERVER_STYLE_STUB(nsXPathResult)
NS_IMPL_NSIDOCUMENTOBSERVER_STATE_STUB(nsXPathResult)
NS_IMETHODIMP
nsXPathResult::BeginUpdate(nsIDocument* aDocument)
{
@ -217,32 +222,6 @@ nsXPathResult::EndUpdate(nsIDocument* aDocument)
return NS_OK;
}
NS_IMETHODIMP
nsXPathResult::BeginLoad(nsIDocument* aDocument)
{
return NS_OK;
}
NS_IMETHODIMP
nsXPathResult::EndLoad(nsIDocument* aDocument)
{
return NS_OK;
}
NS_IMETHODIMP
nsXPathResult::BeginReflow(nsIDocument* aDocument,
nsIPresShell* aShell)
{
return NS_OK;
}
NS_IMETHODIMP
nsXPathResult::EndReflow(nsIDocument* aDocument,
nsIPresShell* aShell)
{
return NS_OK;
}
NS_IMETHODIMP
nsXPathResult::ContentChanged(nsIDocument* aDocument,
nsIContent *aContent,
@ -251,15 +230,6 @@ nsXPathResult::ContentChanged(nsIDocument* aDocument,
return NS_OK;
}
NS_IMETHODIMP
nsXPathResult::ContentStatesChanged(nsIDocument* aDocument,
nsIContent* aContent1,
nsIContent* aContent2,
PRInt32 aStateMask)
{
return NS_OK;
}
NS_IMETHODIMP
nsXPathResult::AttributeChanged(nsIDocument* aDocument,
nsIContent* aContent,
@ -312,53 +282,6 @@ nsXPathResult::ContentRemoved(nsIDocument* aDocument,
return NS_OK;
}
NS_IMETHODIMP
nsXPathResult::StyleSheetAdded(nsIDocument* aDocument,
nsIStyleSheet* aStyleSheet)
{
return NS_OK;
}
NS_IMETHODIMP
nsXPathResult::StyleSheetRemoved(nsIDocument* aDocument,
nsIStyleSheet* aStyleSheet)
{
return NS_OK;
}
NS_IMETHODIMP
nsXPathResult::StyleSheetDisabledStateChanged(nsIDocument* aDocument,
nsIStyleSheet* aStyleSheet,
PRBool aDisabled)
{
return NS_OK;
}
NS_IMETHODIMP
nsXPathResult::StyleRuleChanged(nsIDocument* aDocument,
nsIStyleSheet* aStyleSheet,
nsIStyleRule* aStyleRule,
nsChangeHint aHint)
{
return NS_OK;
}
NS_IMETHODIMP
nsXPathResult::StyleRuleAdded(nsIDocument* aDocument,
nsIStyleSheet* aStyleSheet,
nsIStyleRule* aStyleRule)
{
return NS_OK;
}
NS_IMETHODIMP
nsXPathResult::StyleRuleRemoved(nsIDocument* aDocument,
nsIStyleSheet* aStyleSheet,
nsIStyleRule* aStyleRule)
{
return NS_OK;
}
NS_IMETHODIMP
nsXPathResult::DocumentWillBeDestroyed(nsIDocument* aDocument)
{

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

@ -79,61 +79,7 @@ public:
NS_DECL_NSIDOMXPATHRESULT
// nsIDocumentObserver interface
NS_IMETHOD BeginUpdate(nsIDocument* aDocument);
NS_IMETHOD EndUpdate(nsIDocument* aDocument);
NS_IMETHOD BeginLoad(nsIDocument* aDocument);
NS_IMETHOD EndLoad(nsIDocument* aDocument);
NS_IMETHOD BeginReflow(nsIDocument* aDocument,
nsIPresShell* aShell);
NS_IMETHOD EndReflow(nsIDocument* aDocument,
nsIPresShell* aShell);
NS_IMETHOD ContentChanged(nsIDocument* aDocument,
nsIContent* aContent,
nsISupports* aSubContent);
NS_IMETHOD ContentStatesChanged(nsIDocument* aDocument,
nsIContent* aContent1,
nsIContent* aContent2,
PRInt32 aStateMask);
NS_IMETHOD AttributeChanged(nsIDocument* aDocument,
nsIContent* aContent,
PRInt32 aNameSpaceID,
nsIAtom* aAttribute,
PRInt32 aModType,
nsChangeHint aHint);
NS_IMETHOD ContentAppended(nsIDocument* aDocument,
nsIContent* aContainer,
PRInt32 aNewIndexInContainer);
NS_IMETHOD ContentInserted(nsIDocument* aDocument,
nsIContent* aContainer,
nsIContent* aChild,
PRInt32 aIndexInContainer);
NS_IMETHOD ContentReplaced(nsIDocument* aDocument,
nsIContent* aContainer,
nsIContent* aOldChild,
nsIContent* aNewChild,
PRInt32 aIndexInContainer);
NS_IMETHOD ContentRemoved(nsIDocument* aDocument,
nsIContent* aContainer,
nsIContent* aChild,
PRInt32 aIndexInContainer);
NS_IMETHOD StyleSheetAdded(nsIDocument* aDocument,
nsIStyleSheet* aStyleSheet);
NS_IMETHOD StyleSheetRemoved(nsIDocument* aDocument,
nsIStyleSheet* aStyleSheet);
NS_IMETHOD StyleSheetDisabledStateChanged(nsIDocument* aDocument,
nsIStyleSheet* aStyleSheet,
PRBool aDisabled);
NS_IMETHOD StyleRuleChanged(nsIDocument* aDocument,
nsIStyleSheet* aStyleSheet,
nsIStyleRule* aStyleRule,
nsChangeHint aHint);
NS_IMETHOD StyleRuleAdded(nsIDocument* aDocument,
nsIStyleSheet* aStyleSheet,
nsIStyleRule* aStyleRule);
NS_IMETHOD StyleRuleRemoved(nsIDocument* aDocument,
nsIStyleSheet* aStyleSheet,
nsIStyleRule* aStyleRule);
NS_IMETHOD DocumentWillBeDestroyed(nsIDocument* aDocument);
NS_DECL_NSIDOCUMENTOBSERVER
// nsIXPathResult interface
NS_IMETHOD SetExprResult(ExprResult* aExprResult,