mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Merge pull request #13899 from Snuffleupagus/includeAnnotationStorage-fix-caching
[Regression] Re-factor the *internal* `includeAnnotationStorage` handling, since it's currently subtly wrong
This commit is contained in:
commit
db11ba024d
6 changed files with 133 additions and 77 deletions
|
@ -320,7 +320,14 @@ class Page {
|
|||
});
|
||||
}
|
||||
|
||||
getOperatorList({ handler, sink, task, intent, annotationStorage }) {
|
||||
getOperatorList({
|
||||
handler,
|
||||
sink,
|
||||
task,
|
||||
intent,
|
||||
cacheKey,
|
||||
annotationStorage = null,
|
||||
}) {
|
||||
const contentStreamPromise = this.getContentStream(handler);
|
||||
const resourcesPromise = this.loadResources([
|
||||
"ColorSpace",
|
||||
|
@ -354,7 +361,7 @@ class Page {
|
|||
this.nonBlendModesSet
|
||||
),
|
||||
pageIndex: this.pageIndex,
|
||||
intent,
|
||||
cacheKey,
|
||||
});
|
||||
|
||||
return partialEvaluator
|
||||
|
@ -377,7 +384,7 @@ class Page {
|
|||
pageOpList.flush(true);
|
||||
return { length: pageOpList.totalLength };
|
||||
}
|
||||
const renderForms = !!(intent & RenderingIntentFlag.ANNOTATION_FORMS),
|
||||
const renderForms = !!(intent & RenderingIntentFlag.ANNOTATIONS_FORMS),
|
||||
intentAny = !!(intent & RenderingIntentFlag.ANY),
|
||||
intentDisplay = !!(intent & RenderingIntentFlag.DISPLAY),
|
||||
intentPrint = !!(intent & RenderingIntentFlag.PRINT);
|
||||
|
|
|
@ -688,6 +688,7 @@ class WorkerMessageHandler {
|
|||
sink,
|
||||
task,
|
||||
intent: data.intent,
|
||||
cacheKey: data.cacheKey,
|
||||
annotationStorage: data.annotationStorage,
|
||||
})
|
||||
.then(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue