pdf.js/test
Jonas Jenwald 9881dbf927 Attempt to also cache images at the "page"-level (issue 16263)
Currently we have two separate image-caches on the worker-thread:
 - A local one, which is unique to each `PartialEvaluator.getOperatorList` invocation. This one caches both names *and* references, since image-resources may be accessed in either way.
 - A global one, which applies to the entire PDF documents and all its pages. This one only caches references, since nothing else would work.

This patch introduces a third image-cache, which essentially sits "between" the two existing ones. The new `RegionalImageCache`[1] will be usable throughout a `PartialEvaluator` instance, and consequently it *only* caches references, which thus allows us to keep track of repeated image-resources found in e.g. different /Form and /SMask objects.

---
[1] For lack of a better word, since naming things is hard...
2023-04-10 11:34:41 +02:00
..
chromium Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00
font Enable the ESLint prefer-spread rule 2022-08-06 10:17:00 +02:00
integration [JS] Send a Validate action on change on Choice widget 2023-02-19 16:33:05 +01:00
pdfs Attempt to also cache images at the "page"-level (issue 16263) 2023-04-10 11:34:41 +02:00
resources Enable the declaration-block-no-redundant-longhand-properties Stylelint rule 2023-03-25 10:08:27 +01:00
stats Use more for...of loops in the code-base 2022-07-17 16:18:54 +02:00
ttx Update ttx from version 2.5 to version 3.19.0 2022-07-10 21:18:36 +02:00
types Add support for modern ECMAScript class features 2021-10-22 22:01:17 +02:00
unit [api-minor] Remove the disableCombineTextItems option 2023-03-30 14:23:38 +02:00
.eslintrc Enable ESLint rules that no longer need to be disabled on a directory/file-basis 2021-01-22 17:47:03 +01:00
.gitignore Ignore test snapshots directory. 2013-03-15 11:24:08 -07:00
add_test.js Enable the ESLint no-var rule in test/add_test.js 2021-03-14 10:25:51 +01:00
annotation_layer_builder_overrides.css [Annotation] Don't rotate an annotation when it has the NoRotate flag 2023-03-06 17:27:11 +01:00
downloadutils.js Make verifyManifestFiles fail for non-linked test-cases with a "link": true-entry 2021-09-10 09:51:34 +02:00
driver.js [api-minor] Extend general transfer function support to browsers without OffscreenCanvas 2023-03-14 13:09:08 +01:00
integration-boot.js [Annotations] Add some aria-owns in the text layer to link to annotations (bug 1780375) 2022-08-12 14:35:26 +02:00
test_manifest.json Attempt to also cache images at the "page"-level (issue 16263) 2023-04-10 11:34:41 +02:00
test_slave.html Tighten the vars-argument for the ESLint no-unused-vars rule 2022-12-04 16:15:50 +01:00
test.js Revert "Update rimraf to version 4" 2023-03-06 19:57:00 +01:00
testutils.js Revert "Update rimraf to version 4" 2023-03-06 19:57:00 +01:00
text_layer_test.css Introduce inset usage in the CSS files 2023-03-19 14:32:37 +01:00
webserver.js Enable the unicorn/prefer-string-replace-all ESLint plugin rule 2023-03-23 12:57:10 +01:00
xfa_layer_builder_overrides.css XFA - Fix xfaLink class to make links work (bug 1735738) 2021-10-29 11:39:33 -04:00