mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #14077 from calixteman/driver
Fix issues in driver.js when getting css sheets
This commit is contained in:
commit
f1ceb00ae4
1 changed files with 4 additions and 4 deletions
|
@ -168,7 +168,7 @@ var rasterizeTextLayer = (function rasterizeTextLayerClosure() {
|
|||
foreignObject.appendChild(div);
|
||||
|
||||
stylePromise
|
||||
.then(async cssRules => {
|
||||
.then(async ([cssRules]) => {
|
||||
style.textContent = cssRules;
|
||||
|
||||
// Rendering text layer as HTML.
|
||||
|
@ -251,8 +251,8 @@ var rasterizeAnnotationLayer = (function rasterizeAnnotationLayerClosure() {
|
|||
|
||||
// Rendering annotation layer as HTML.
|
||||
stylePromise
|
||||
.then(async (common, overrides) => {
|
||||
style.textContent = common + overrides;
|
||||
.then(async ([common, overrides]) => {
|
||||
style.textContent = common + "\n" + overrides;
|
||||
|
||||
var annotation_viewport = viewport.clone({ dontFlip: true });
|
||||
var parameters = {
|
||||
|
@ -326,7 +326,7 @@ var rasterizeXfaLayer = (function rasterizeXfaLayerClosure() {
|
|||
foreignObject.appendChild(div);
|
||||
|
||||
stylePromise
|
||||
.then(async cssRules => {
|
||||
.then(async ([cssRules]) => {
|
||||
style.textContent = fontRules + "\n" + cssRules;
|
||||
|
||||
XfaLayer.render({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue