mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Don't enqueue
unused properties when sending 'GetOperatorList' data from the worker-thread (PR 11069 follow-up)
With the changes made in PR 11069, it's no longer necessary to include the `pageIndex`/`intent` parameters when sending 'GetOperatorList' data. In the previous implementation these properties were used to associate the `OperatorList` with the correct `RenderTask`, however now that `ReadableStream`s are used that's handled automatically and it's thus dead code at this point.
This commit is contained in:
parent
4bf61197fa
commit
12e1c91f73
2 changed files with 5 additions and 9 deletions
|
@ -1324,7 +1324,7 @@ class PDFPageProxy {
|
|||
if (this._transport.destroyed) {
|
||||
return; // Ignore any pending requests if the worker was terminated.
|
||||
}
|
||||
this._renderPageChunk(value.operatorList, intentState);
|
||||
this._renderPageChunk(value, intentState);
|
||||
pump();
|
||||
}, (reason) => {
|
||||
intentState.streamReader = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue