Merge pull request #16086 from mozilla/Snuffleupagus-textLayer-OffscreenCanvas

Use `OffscreenCanvas` as intended for all code-paths in `src/display/text_layer.js` (PR 15722 follow-up)
This commit is contained in:
Jonas Jenwald 2023-02-24 22:40:18 +01:00 committed by GitHub
commit af64149885
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,6 +311,7 @@ class TextLayerRenderTask {
this._container = this._rootContainer = container;
this._textDivs = textDivs || [];
this._textContentItemsStr = textContentItemsStr || [];
this._isOffscreenCanvasSupported = isOffscreenCanvasSupported;
this._fontInspectorEnabled = !!globalThis.FontInspector?.enabled;
this._reader = null;