Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 9e176d3

Browse files
committed
[Bug 857884] Use dom::EventTarget more instead of nsIDOMEventTarget Part 7 r=Ms2ger
1 parent 5eb7ffc commit 9e176d3

58 files changed

Lines changed: 63 additions & 105 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

content/base/public/nsContentUtils.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class nsIDocumentObserver;
5252
class nsIDOMDocument;
5353
class nsIDOMDocumentFragment;
5454
class nsIDOMEvent;
55-
class nsIDOMEventTarget;
5655
class nsIDOMHTMLFormElement;
5756
class nsIDOMHTMLInputElement;
5857
class nsIDOMKeyEvent;
@@ -954,7 +953,7 @@ class nsContentUtils
954953
bool aCanBubble,
955954
bool aCancelable,
956955
bool *aDefaultAction = nullptr);
957-
956+
958957
/**
959958
* This method creates and dispatches a untrusted event.
960959
* Works only with events which can be created by calling

content/base/src/FileIOObject.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#ifndef FileIOObject_h__
77
#define FileIOObject_h__
88

9-
#include "nsIDOMEventTarget.h"
109
#include "nsDOMEventTargetHelper.h"
1110
#include "nsIChannel.h"
1211
#include "nsIFile.h"

content/base/src/nsContentUtils.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
#include "nsIDOMDocument.h"
8888
#include "nsIDOMDocumentType.h"
8989
#include "nsIDOMEvent.h"
90-
#include "nsIDOMEventTarget.h"
9190
#include "nsIDOMHTMLElement.h"
9291
#include "nsIDOMHTMLFormElement.h"
9392
#include "nsIDOMHTMLInputElement.h"

content/base/src/nsDocument.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "nsStubDocumentObserver.h"
2424
#include "nsIDOMStyleSheetList.h"
2525
#include "nsIScriptGlobalObject.h"
26-
#include "nsIDOMEventTarget.h"
2726
#include "nsIContent.h"
2827
#include "nsEventListenerManager.h"
2928
#include "nsIDOMNodeSelector.h"
@@ -1155,7 +1154,7 @@ class nsDocument : public nsIDocument,
11551154

11561155
// Return whether all the presshells for this document are safe to flush
11571156
bool IsSafeToFlush() const;
1158-
1157+
11591158
void DispatchPageTransition(mozilla::dom::EventTarget* aDispatchTarget,
11601159
const nsAString& aType,
11611160
bool aPersisted);
@@ -1168,7 +1167,7 @@ class nsDocument : public nsIDocument,
11681167
#define NS_DOCUMENT_NOTIFY_OBSERVERS(func_, params_) \
11691168
NS_OBSERVER_ARRAY_NOTIFY_XPCOM_OBSERVERS(mObservers, nsIDocumentObserver, \
11701169
func_, params_);
1171-
1170+
11721171
#ifdef DEBUG
11731172
void VerifyRootContentState();
11741173
#endif

content/base/src/nsObjectLoadingContent.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "nsIDocument.h"
1919
#include "nsIDOMDataContainerEvent.h"
2020
#include "nsIDOMDocument.h"
21-
#include "nsIDOMEventTarget.h"
2221
#include "nsIExternalProtocolHandler.h"
2322
#include "nsEventStates.h"
2423
#include "nsIObjectFrame.h"

content/canvas/src/WebGLContextUtils.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include "nsIVariant.h"
1717

1818
#include "nsIDOMEvent.h"
19-
#include "nsIDOMEventTarget.h"
2019
#include "nsIDOMDataContainerEvent.h"
2120

2221
#include "mozilla/Preferences.h"

content/events/public/nsEventDispatcher.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
class nsEventTargetChainItem;
1414
class nsIDOMEvent;
15-
class nsIDOMEventTarget;
1615
class nsIScriptGlobalObject;
1716
class nsPresContext;
1817

content/events/src/nsDOMEvent.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "nsIJSNativeInitializer.h"
1919
#include "mozilla/dom/EventTarget.h"
2020
#include "mozilla/dom/EventBinding.h"
21-
#include "mozilla/dom/BindingUtils.h"
2221
#include "nsIScriptGlobalObject.h"
2322

2423
class nsIContent;

content/events/src/nsDOMMutationEvent.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#define nsDOMMutationEvent_h__
88

99
#include "nsIDOMMutationEvent.h"
10+
#include "nsINode.h"
1011
#include "nsDOMEvent.h"
1112
#include "nsMutationEvent.h"
1213
#include "mozilla/dom/MutationEventBinding.h"

content/events/src/nsEventStateManager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
#include "nsIMarkupDocumentViewer.h"
5555
#include "nsIDOMWheelEvent.h"
5656
#include "nsIDOMDragEvent.h"
57-
#include "nsIDOMEventTarget.h"
5857
#include "nsIDOMUIEvent.h"
5958
#include "nsDOMDragEvent.h"
6059
#include "nsIDOMNSEditableElement.h"

0 commit comments

Comments
 (0)