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

XFA - Add support for access property

- it's a partial fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1716816.
This commit is contained in:
Calixte Denizet 2021-06-20 18:56:14 +02:00
parent 2e6d3d6b00
commit 7cb92a64b1
6 changed files with 49 additions and 0 deletions

View file

@ -72,6 +72,7 @@ import {
layoutClass,
layoutText,
measureToString,
setAccess,
setMinMaxDimensions,
toStyle,
} from "./html_utils.js";
@ -2023,8 +2024,11 @@ class ExclGroup extends XFAObject {
const children = [];
const attributes = {
id: this[$uid],
class: [],
};
setAccess(this, attributes.class);
if (!this[$extra]) {
this[$extra] = Object.create(null);
}
@ -2329,6 +2333,8 @@ class Field extends XFAObject {
class: classNames,
};
setAccess(this, classNames);
if (this.name) {
attributes.xfaName = this.name;
}
@ -4171,8 +4177,11 @@ class Subform extends XFAObject {
const children = [];
const attributes = {
id: this[$uid],
class: [],
};
setAccess(this, attributes.class);
if (!this[$extra]) {
this[$extra] = Object.create(null);
}