mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge upstream.
This commit is contained in:
commit
c02b18b5e8
5 changed files with 20 additions and 22 deletions
|
@ -80,6 +80,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
|
|||
this.pageInfo = pageInfo;
|
||||
this.transport = transport;
|
||||
this.stats = new StatTimer();
|
||||
this.stats.enabled = !!globalScope.PDFJS.enableStats;
|
||||
this.objs = transport.objs;
|
||||
}
|
||||
PDFPageProxy.prototype = {
|
||||
|
@ -197,7 +198,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
|
|||
var operatorList = this.operatorList;
|
||||
var stepper = null;
|
||||
if (PDFJS.pdfBug && StepperManager.enabled) {
|
||||
stepper = StepperManager.create(this.pageNumber);
|
||||
stepper = StepperManager.create(this.pageNumber - 1);
|
||||
stepper.init(operatorList);
|
||||
stepper.nextBreakPoint = stepper.getNextBreakPoint();
|
||||
}
|
||||
|
|
|
@ -63,8 +63,6 @@ var Page = (function PageClosure() {
|
|||
function Page(xref, pageNumber, pageDict, ref) {
|
||||
this.pageNumber = pageNumber;
|
||||
this.pageDict = pageDict;
|
||||
this.stats = new StatTimer();
|
||||
this.stats.enabled = !!globalScope.PDFJS.enableStats;
|
||||
this.xref = xref;
|
||||
this.ref = ref;
|
||||
|
||||
|
@ -139,8 +137,6 @@ var Page = (function PageClosure() {
|
|||
return this.operatorList;
|
||||
}
|
||||
|
||||
this.stats.time('Build IR Queue');
|
||||
|
||||
var xref = this.xref;
|
||||
var content = this.content;
|
||||
var resources = this.resources;
|
||||
|
@ -159,7 +155,6 @@ var Page = (function PageClosure() {
|
|||
xref, handler, 'p' + this.pageNumber + '_');
|
||||
|
||||
this.operatorList = pe.getOperatorList(content, resources, dependency);
|
||||
this.stats.timeEnd('Build IR Queue');
|
||||
return this.operatorList;
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue