Merge pull request #14153 from catherinemds/xfa-link

Fix XFA links (bug 1735738)
This commit is contained in:
calixteman 2021-10-29 11:06:00 -07:00 committed by GitHub
commit 2c0bbaf208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 38 additions and 2 deletions

View File

@ -291,6 +291,10 @@ var rasterizeXfaLayer = (function rasterizeXfaLayerClosure() {
file: "../web/xfa_layer_builder.css",
promise: null,
},
overrides: {
file: "./xfa_layer_builder_overrides.css",
promise: null,
},
};
function getXfaLayerStyle() {
@ -326,8 +330,8 @@ var rasterizeXfaLayer = (function rasterizeXfaLayerClosure() {
foreignObject.appendChild(div);
stylePromise
.then(async ([cssRules]) => {
style.textContent = fontRules + "\n" + cssRules;
.then(async ([common, overrides]) => {
style.textContent = fontRules + "\n" + common + "\n" + overrides;
XfaLayer.render({
xfa,

View File

@ -0,0 +1 @@
https://bugzilla.mozilla.org/attachment.cgi?id=9227382

View File

@ -6056,5 +6056,13 @@
"enableXfa": true,
"type": "eq",
"lastPage": 1
},
{ "id": "xfa_bug1735738",
"file": "pdfs/xfa_bug1735738.pdf",
"md5": "7aa91f6681798c48e0c9d9836ed30742",
"enableXfa": true,
"link": true,
"rounds": 1,
"type": "eq"
}
]

View File

@ -0,0 +1,20 @@
/* Copyright 2021 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.xfaLink {
opacity: 0.2;
background: rgba(255, 255, 0, 1);
box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
}

View File

@ -223,6 +223,9 @@
.xfaLink {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.xfaCheckbox,