Bug 1254900 - Correct class name in comment in AsyncEventDispatcher.h. r?masayuki
Comment-only so DONTBUILD.
MozReview-Commit-ID: GO9M6oMlZ1h
--- a/dom/events/AsyncEventDispatcher.h
+++ b/dom/events/AsyncEventDispatcher.h
@@ -14,22 +14,22 @@
#include "nsString.h"
#include "nsThreadUtils.h"
class nsINode;
namespace mozilla {
/**
- * Use nsAsyncDOMEvent to fire a DOM event that requires safe a stable DOM.
+ * Use AsyncEventDispatcher to fire a DOM event that requires safe a stable DOM.
* For example, you may need to fire an event from within layout, but
* want to ensure that the event handler doesn't mutate the DOM at
* the wrong time, in order to avoid resulting instability.
*/
-
+
class AsyncEventDispatcher : public nsRunnable
{
public:
/**
* If aOnlyChromeDispatch is true, the event is dispatched to only
* chrome node. In that case, if aTarget is already a chrome node,
* the event is dispatched to it, otherwise the dispatch path starts
* at the first chrome ancestor of that target.
@@ -91,17 +91,17 @@ public:
LoadBlockingAsyncEventDispatcher(nsINode* aEventNode, nsIDOMEvent* aEvent)
: AsyncEventDispatcher(aEventNode, aEvent)
, mBlockedDoc(aEventNode->OwnerDoc())
{
if (mBlockedDoc) {
mBlockedDoc->BlockOnload();
}
}
-
+
~LoadBlockingAsyncEventDispatcher();
private:
nsCOMPtr<nsIDocument> mBlockedDoc;
};
} // namespace mozilla