1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Introduce some optional chaining in the src/core/xfa/ folder

After PR 12563 we're now free to use optional chaining in the worker-thread as well.
This commit is contained in:
Jonas Jenwald 2023-05-07 12:49:07 +02:00
parent 4d3dfe254f
commit 89f768322d
8 changed files with 46 additions and 65 deletions

View file

@ -273,7 +273,7 @@ function checkDimensions(node, space) {
const ERROR = 2;
const parent = node[$getSubformParent]();
const attempt = (parent[$extra] && parent[$extra].attempt) || 0;
const attempt = parent[$extra]?.attempt || 0;
const [, y, w, h] = getTransformedBBox(node);
switch (parent.layout) {