Bug 982602 Rename ns(LoadBlocking)AsyncDOMEvent to mozilla::(LoadBlocking)AsyncEventDispatcher r=smaug
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user