From 2f72ac12557ebf6e0bc34c57fd9dc0ac869c2ba0 Mon Sep 17 00:00:00 2001 From: Mitar Date: Fri, 19 Sep 2014 15:09:05 -0700 Subject: [PATCH] textLayer is not used anymore in render context. It should be removed to prevent confusion when reading the code. --- test/driver.js | 1 - web/page_view.js | 1 - 2 files changed, 2 deletions(-) diff --git a/test/driver.js b/test/driver.js index 84b0c4f7f..b45205dcf 100644 --- a/test/driver.js +++ b/test/driver.js @@ -311,7 +311,6 @@ function nextPage(task, loadError) { } var renderContext = { canvasContext: drawContext, - textLayer: textLayerBuilder, viewport: viewport }; var completeRender = (function(error) { diff --git a/web/page_view.js b/web/page_view.js index 54903a5a9..62a90686d 100644 --- a/web/page_view.js +++ b/web/page_view.js @@ -644,7 +644,6 @@ var PageView = function pageView(container, id, scale, var renderContext = { canvasContext: ctx, viewport: this.viewport, - textLayer: textLayer, // intent: 'default', // === 'display' continueCallback: function pdfViewcContinueCallback(cont) { if (PDFView.highestPriorityPage !== 'page' + self.id) {