1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Fixes make files, removes stats from backend, stepper

This commit is contained in:
Yury Delendik 2012-04-12 14:02:47 -07:00
parent 7c35f10af8
commit 494fd1ccf9
5 changed files with 20 additions and 22 deletions

View file

@ -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 = {
@ -206,7 +207,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();
}

View file

@ -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;
},