Bug 982602 Rename ns(LoadBlocking)AsyncDOMEvent to mozilla::(LoadBlocking)AsyncEventDispatcher r=smaug

This commit is contained in:
Masayuki Nakano
2014-03-17 15:56:54 +09:00
parent 7d68458899
commit d9b6788894
27 changed files with 270 additions and 237 deletions

View File

@@ -9,6 +9,7 @@
#include "nsReadableUtils.h"
#include "nsCRT.h"
#include "mozilla/AsyncEventDispatcher.h"
#include "mozilla/Selection.h"
#include "nsIScriptGlobalObject.h"
#include "nsPIDOMWindow.h"
@@ -19,7 +20,6 @@
#include "nsError.h"
#include "nsView.h"
#include "nsAsyncDOMEvent.h"
#include <algorithm>
// Print Options
@@ -1858,7 +1858,7 @@ nsPrintEngine::FirePrintPreviewUpdateEvent()
// listener bound to this event and therefore no need to dispatch it.
if (mIsDoingPrintPreview && !mIsDoingPrinting) {
nsCOMPtr<nsIContentViewer> cv = do_QueryInterface(mDocViewerPrint);
(new nsAsyncDOMEvent(
(new AsyncEventDispatcher(
cv->GetDocument(), NS_LITERAL_STRING("printPreviewUpdate"), true, true)
)->RunDOMEventWhenSafe();
}