Commit 1ba1fb1c authored by Jonathan Watt's avatar Jonathan Watt
Browse files

Bug 1642167. Remove nsPrintData->mIsIFrameSelected. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D77602
parent 78ab5353
......@@ -28,7 +28,6 @@ static mozilla::LazyLogModule gPrintingLog("printing");
nsPrintData::nsPrintData(ePrintDataType aType)
: mType(aType),
mPrintDocList(0),
mIsIFrameSelected(false),
mIsParentAFrameSet(false),
mOnStartSent(false),
mIsAborted(false),
......
......@@ -67,7 +67,6 @@ class nsPrintData {
// mKids (and their mKids, etc.)
nsTArray<nsPrintObject*> mPrintDocList;
bool mIsIFrameSelected;
bool mIsParentAFrameSet;
bool mOnStartSent;
bool mIsAborted; // tells us the document is being aborted
......
......@@ -801,13 +801,12 @@ nsresult nsPrintJob::DoCommonPrint(bool aIsPrintPreview,
// in the parent document
MapContentToWebShells(printData->mPrintObject, printData->mPrintObject);
printData->mIsIFrameSelected = IsThereAnIFrameSelected(
bool isIFrameSelected = IsThereAnIFrameSelected(
docShell, printData->mCurrentFocusWin, printData->mIsParentAFrameSet);
// Now determine how to set up the Frame print UI
printData->mPrintSettings->SetPrintOptions(
nsIPrintSettings::kEnableSelectionRB,
isSelection || printData->mIsIFrameSelected);
nsIPrintSettings::kEnableSelectionRB, isSelection || isIFrameSelected);
bool printingViaParent =
XRE_IsContentProcess() && Preferences::GetBool("print.print_via_parent");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment