Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
Tor Browser
Commits
1ba1fb1c
Commit
1ba1fb1c
authored
May 31, 2020
by
Jonathan Watt
Browse files
Bug 1642167. Remove nsPrintData->mIsIFrameSelected. r=emilio
Differential Revision:
https://phabricator.services.mozilla.com/D77602
parent
78ab5353
Changes
3
Hide whitespace changes
Inline
Side-by-side
layout/printing/nsPrintData.cpp
View file @
1ba1fb1c
...
...
@@ -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
),
...
...
layout/printing/nsPrintData.h
View file @
1ba1fb1c
...
...
@@ -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
...
...
layout/printing/nsPrintJob.cpp
View file @
1ba1fb1c
...
...
@@ -801,13 +801,12 @@ nsresult nsPrintJob::DoCommonPrint(bool aIsPrintPreview,
// in the parent document
MapContentToWebShells
(
printData
->
mPrintObject
,
printData
->
mPrintObject
);
printData
->
mI
sIFrameSelected
=
IsThereAnIFrameSelected
(
bool
i
sIFrameSelected
=
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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment