1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 07:08:08 +02:00
pdf.js/src
Jonas Jenwald b1d148a4aa Remove Parser_fetchIfRef since it's obsolete
This code was added in PR 1214, but was made obsolete by PRs 1488/1493. Prior to the latter ones, `Dict_get` retured the raw objects. However, afterwards (and currently) `Dict_get` now resolves indirect objects, which makes `Parser_fetchIfRef` redundant.

*Potential risks with this patch:*
This patch passes all tests locally, but there's a *small* possibility that it could break some weird PDF files.
In the current code, wrapping `Dict_get` inside `Parser_fetchIfRef` will potentially mean two back-to-back call of `XRef_fetch`, if a reference points directly to another reference. I'm not sure if this can actually happen in practice, and I'd think that if that were the case we'd already have run into it elsewhere in the code-base, given that `Parser` is the only place where we try to "double" resolve references.
2015-09-02 23:11:00 +02:00
..
core Remove Parser_fetchIfRef since it's obsolete 2015-09-02 23:11:00 +02:00
display api/getDocument : handle ArrayBuffer check for PDF binary data (byteLength) 2015-08-20 08:56:05 +02:00
images Vectorize the logo. 2012-10-29 14:08:52 -04:00
shared Serialize errors before invoking postMessage 2015-08-08 21:44:57 +02:00
doc_helper.js Creates make.js code to build jsdoc. 2014-04-13 15:54:24 -05:00
pdf.js Enforcing JSHint's undef option 2014-07-19 16:41:07 +02:00
worker_loader.js Stop including cidmaps.js 2014-07-25 21:53:09 +02:00