Bug 1553318. Remove nsIPrintSettings.kRangeFocus. r=bobowen
authorJonathan Watt <jwatt@jwatt.org>
Mon, 13 May 2019 14:52:25 +0100
changeset 475395 1af5cf2905662442515ff17166e79cb3e10e252f
parent 475394 f75308d601f2a3d434cb91b47b238e1e2194706f
child 475396 919893dc7365431d63b09f1603a961e6e5285f20
push id36061
push usercbrindusan@mozilla.com
push dateFri, 24 May 2019 21:49:59 +0000
treeherdermozilla-central@5d3e1ea77693 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbobowen
bugs1553318
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1553318. Remove nsIPrintSettings.kRangeFocus. r=bobowen Differential Revision: https://phabricator.services.mozilla.com/D32064
layout/printing/nsPrintJob.cpp
widget/nsIPrintSettings.idl
--- a/layout/printing/nsPrintJob.cpp
+++ b/layout/printing/nsPrintJob.cpp
@@ -148,19 +148,18 @@ static uint32_t gDumpLOFileNameCnt = 0;
 
 #define PRT_YESNO(_p) ((_p) ? "YES" : "NO")
 static const char* gFrameTypesStr[] = {"eDoc", "eFrame", "eIFrame",
                                        "eFrameSet"};
 static const char* gPrintFrameTypeStr[] = {"kNoFrames", "kFramesAsIs",
                                            "kSelectedFrame", "kEachFrameSep"};
 static const char* gFrameHowToEnableStr[] = {
     "kFrameEnableNone", "kFrameEnableAll", "kFrameEnableAsIsAndEach"};
-static const char* gPrintRangeStr[] = {"kRangeAllPages",
-                                       "kRangeSpecifiedPageRange",
-                                       "kRangeSelection", "kRangeFocusFrame"};
+static const char* gPrintRangeStr[] = {
+    "kRangeAllPages", "kRangeSpecifiedPageRange", "kRangeSelection"};
 
 // This processes the selection on aOrigDoc and creates an inverted selection on
 // aDoc, which it then deletes. If the start or end of the inverted selection
 // ranges occur in text nodes then an ellipsis is added.
 static nsresult DeleteUnselectedNodes(Document* aOrigDoc, Document* aDoc);
 
 #ifdef EXTENDED_DEBUG_PRINTING
 // Forward Declarations
--- a/widget/nsIPrintSettings.idl
+++ b/widget/nsIPrintSettings.idl
@@ -65,17 +65,16 @@ interface nsIPrintSettings : nsISupports
   const long kPrintOddPages     = 0x00000001;
   const long kPrintEvenPages    = 0x00000002;
   const long kEnableSelectionRB = 0x00000004;
 
   /* Print Range Enums */
   const long kRangeAllPages           = 0;
   const long kRangeSpecifiedPageRange = 1;
   const long kRangeSelection          = 2;
-  const long kRangeFocusFrame         = 3;
 
   /* Justification Enums */
   const long kJustLeft   = 0;
   const long kJustCenter = 1;
   const long kJustRight  = 2;
 
   /**
    * FrameSet Default Type Constants