mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Merge pull request #16368 from Snuffleupagus/rm-GlobalImageCache-addPageIndex
Inline the `addPageIndex` method in `GlobalImageCache.shouldCache`
This commit is contained in:
commit
667085ee33
2 changed files with 11 additions and 19 deletions
|
@ -822,10 +822,9 @@ class PartialEvaluator {
|
|||
if (imageRef) {
|
||||
this._regionalImageCache.set(/* name = */ null, imageRef, cacheData);
|
||||
|
||||
assert(!isInline, "Cannot cache an inline image globally.");
|
||||
this.globalImageCache.addPageIndex(imageRef, this.pageIndex);
|
||||
|
||||
if (cacheGlobally) {
|
||||
assert(!isInline, "Cannot cache an inline image globally.");
|
||||
|
||||
this.globalImageCache.setData(imageRef, {
|
||||
objId,
|
||||
fn: OPS.paintImageXObject,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue