Fix jsdoc comment; remove resources dict from type3 properties

This commit is contained in:
Yury Delendik 2012-04-14 17:52:49 -07:00
parent 4953e0fecc
commit 6bf640260f
3 changed files with 6 additions and 3 deletions

View File

@ -193,7 +193,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
* canvasContext(required): A 2D context of a DOM Canvas object., * canvasContext(required): A 2D context of a DOM Canvas object.,
* textLayer(optional): An object that has beginLayout, endLayout, and * textLayer(optional): An object that has beginLayout, endLayout, and
* appendText functions. * appendText functions.
* } * }.
* @return {Promise} A promise that is resolved when the page finishes * @return {Promise} A promise that is resolved when the page finishes
* rendering. * rendering.
*/ */
@ -415,6 +415,11 @@ var WorkerTransport = (function WorkerTransportClosure() {
var fakeWorker = { var fakeWorker = {
postMessage: function WorkerTransport_postMessage(obj) { postMessage: function WorkerTransport_postMessage(obj) {
fakeWorker.onmessage({data: obj}); fakeWorker.onmessage({data: obj});
try {
testF.contentWindow.postMessage(obj, "*");
} catch(e) {
debugger;
}
}, },
terminate: function WorkerTransport_terminate() {} terminate: function WorkerTransport_terminate() {}
}; };

View File

@ -862,7 +862,6 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
properties.coded = true; properties.coded = true;
var charProcs = dict.get('CharProcs').getAll(); var charProcs = dict.get('CharProcs').getAll();
var fontResources = dict.get('Resources') || resources; var fontResources = dict.get('Resources') || resources;
properties.resources = fontResources;
properties.charProcOperatorList = {}; properties.charProcOperatorList = {};
for (var key in charProcs) { for (var key in charProcs) {
var glyphStream = charProcs[key]; var glyphStream = charProcs[key];

View File

@ -766,7 +766,6 @@ var Font = (function FontClosure() {
this.name = name; this.name = name;
this.coded = properties.coded; this.coded = properties.coded;
this.charProcOperatorList = properties.charProcOperatorList; this.charProcOperatorList = properties.charProcOperatorList;
this.resources = properties.resources;
this.sizes = []; this.sizes = [];
var names = name.split('+'); var names = name.split('+');