layout/html/base/src/nsPresShell.cpp - Revision 3.485

There were 2 changes made.
Legend
   Added lines
   Changed lines
   Removed lines

layout/html/base/src/nsPresShell.cpp,3.485
.
Disk File
Skipping to line 163. 
 
.
 
#include "nsContentCID.h"
.
#include "nsContentCID.h"
static NS_DEFINE_CID(kCSSStyleSheetCID, NS_CSS_STYLESHEET_CID);
.
static NS_DEFINE_CID(kCSSStyleSheetCID, NS_CSS_STYLESHEET_CID);
static NS_DEFINE_CID(kStyleSetCID, NS_STYLESET_CID);
.
static NS_DEFINE_CID(kStyleSetCID, NS_STYLESET_CID);
static NS_DEFINE_IID(kRangeCID,     NS_RANGE_CID);
.
static NS_DEFINE_IID(kRangeCID,     NS_RANGE_CID);
 
.
static NS_DEFINE_CID(kPrintPreviewContextCID,  NS_PRINT_PREVIEW_CONTEXT_CID);
 
.
 
// supporting bugs 31816, 20760, 22963
.
// supporting bugs 31816, 20760, 22963
// define USE_OVERRIDE to put prefs in as an override stylesheet
.
// define USE_OVERRIDE to put prefs in as an override stylesheet
// otherwise they go in as a Agent stylesheets
.
// otherwise they go in as a Agent stylesheets
//  - OVERRIDE is better for text and bg colors, but bad for link colors,
.
//  - OVERRIDE is better for text and bg colors, but bad for link colors,
Skipping to line 6793. 
  // Create a presentation context to view the new frame tree
.
  // Create a presentation context to view the new frame tree
  nsresult rv;
.
  nsresult rv;
  PRBool isPaginated = PR_FALSE;
.
  PRBool isPaginated = PR_FALSE;
  mPresContext->IsPaginated(&isPaginated);
.
  mPresContext->IsPaginated(&isPaginated);
  if (isPaginated) {
.
  if (isPaginated) {
    rv = NS_NewPrintPreviewContext(&cx);
 
.
    nsCOMPtr<nsIPrintPreviewContext> ppx = do_CreateInstance(kPrintPreviewCont
extCID, &rv);
 
.
    if (NS_SUCCEEDED(rv)) {
 
.
      ppx->QueryInterface(NS_GET_IID(nsIPresContext),(void**)&cx);
 
.
    }
  }
.
  }
  else {
.
  else {
    rv = NS_NewGalleyContext(&cx);
.
    rv = NS_NewGalleyContext(&cx);
  }
.
  }
 
.