mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Merge pull request #13648 from calixteman/xfa_bg
XFA - Don't fill when the fill element is not visible (bug 1718735)
This commit is contained in:
commit
a8a5c5f10b
3 changed files with 12 additions and 3 deletions
|
@ -181,7 +181,7 @@ class Arc extends XFAObject {
|
|||
const edge = this.edge ? this.edge : new Edge({});
|
||||
const edgeStyle = edge[$toStyle]();
|
||||
const style = Object.create(null);
|
||||
if (this.fill) {
|
||||
if (this.fill && this.fill.presence === "visible") {
|
||||
Object.assign(style, this.fill[$toStyle]());
|
||||
} else {
|
||||
style.fill = "transparent";
|
||||
|
@ -631,7 +631,7 @@ class Border extends XFAObject {
|
|||
Object.assign(style, this.margin[$toStyle]());
|
||||
}
|
||||
|
||||
if (this.fill) {
|
||||
if (this.fill && this.fill.presence === "visible") {
|
||||
Object.assign(style, this.fill[$toStyle]());
|
||||
}
|
||||
|
||||
|
@ -3918,7 +3918,7 @@ class Rectangle extends XFAObject {
|
|||
: new Edge({});
|
||||
const edgeStyle = edge[$toStyle]();
|
||||
const style = Object.create(null);
|
||||
if (this.fill) {
|
||||
if (this.fill && this.fill.presence === "visible") {
|
||||
Object.assign(style, this.fill[$toStyle]());
|
||||
} else {
|
||||
style.fill = "transparent";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue