зеркало из https://github.com/mozilla/gecko-dev.git
Merge inbound to mozilla-central. a=merge
This commit is contained in:
Коммит
ee806041c6
|
@ -4,6 +4,8 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
|
@ -11,5 +13,7 @@ void StartGamepadMonitoring() {}
|
|||
|
||||
void StopGamepadMonitoring() {}
|
||||
|
||||
void SetGamepadLightIndicatorColor(uint32_t, uint32_t, uint8_t, uint8_t, uint8_t) {}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
|
|
@ -33,7 +33,6 @@ nsPrintData::nsPrintData(ePrintDataType aType)
|
|||
mOnStartSent(false),
|
||||
mIsAborted(false),
|
||||
mPreparingForPrint(false),
|
||||
mDocWasToBeDestroyed(false),
|
||||
mShrinkToFit(false),
|
||||
mNumPrintablePages(0),
|
||||
mNumPagesPrinted(0),
|
||||
|
|
|
@ -31,13 +31,6 @@ class PrintPreviewUserEventSuppressor;
|
|||
// mPreparingForPrint - indicates that we have started Printing but
|
||||
// have not gone to the timer to start printing the pages. It gets turned
|
||||
// off right before we go to the timer.
|
||||
//
|
||||
// mDocWasToBeDestroyed - Gets set when "someone" tries to unload the document
|
||||
// while we were prparing to Print. This typically happens if a user starts
|
||||
// to print while a page is still loading. If they start printing and pause
|
||||
// at the print dialog and then the page comes in, we then abort printing
|
||||
// because the document is no longer stable.
|
||||
//
|
||||
//------------------------------------------------------------------------
|
||||
class nsPrintData {
|
||||
typedef mozilla::PrintPreviewUserEventSuppressor
|
||||
|
@ -77,9 +70,8 @@ class nsPrintData {
|
|||
bool mIsIFrameSelected;
|
||||
bool mIsParentAFrameSet;
|
||||
bool mOnStartSent;
|
||||
bool mIsAborted; // tells us the document is being aborted
|
||||
bool mPreparingForPrint; // see comments above
|
||||
bool mDocWasToBeDestroyed; // see comments above
|
||||
bool mIsAborted; // tells us the document is being aborted
|
||||
bool mPreparingForPrint; // see comments above
|
||||
bool mShrinkToFit;
|
||||
int32_t mNumPrintablePages;
|
||||
int32_t mNumPagesPrinted;
|
||||
|
|
|
@ -630,15 +630,6 @@ nsresult nsPrintJob::Initialize(nsIDocumentViewerPrint* aDocViewerPrint,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------
|
||||
bool nsPrintJob::CheckBeforeDestroy() {
|
||||
if (mPrt && mPrt->mPreparingForPrint) {
|
||||
mPrt->mDocWasToBeDestroyed = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------
|
||||
nsresult nsPrintJob::Cancel() {
|
||||
if (mPrt && mPrt->mPrintSettings) {
|
||||
|
|
|
@ -208,7 +208,8 @@ class nsPrintJob final : public nsIObserver,
|
|||
nsAString& aTitle, nsAString& aURLStr,
|
||||
eDocTitleDefault aDefType);
|
||||
|
||||
bool CheckBeforeDestroy();
|
||||
bool CheckBeforeDestroy() const { return mPrt && mPrt->mPreparingForPrint; }
|
||||
|
||||
nsresult Cancel();
|
||||
|
||||
mozilla::PresShell* GetPrintPreviewPresShell() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче