Fix issues in driver.js when getting css sheets
This commit is contained in:
		
							parent
							
								
									cc110b8542
								
							
						
					
					
						commit
						4b96735e1d
					
				| @ -168,7 +168,7 @@ var rasterizeTextLayer = (function rasterizeTextLayerClosure() { | |||||||
|       foreignObject.appendChild(div); |       foreignObject.appendChild(div); | ||||||
| 
 | 
 | ||||||
|       stylePromise |       stylePromise | ||||||
|         .then(async cssRules => { |         .then(async ([cssRules]) => { | ||||||
|           style.textContent = cssRules; |           style.textContent = cssRules; | ||||||
| 
 | 
 | ||||||
|           // Rendering text layer as HTML.
 |           // Rendering text layer as HTML.
 | ||||||
| @ -251,8 +251,8 @@ var rasterizeAnnotationLayer = (function rasterizeAnnotationLayerClosure() { | |||||||
| 
 | 
 | ||||||
|       // Rendering annotation layer as HTML.
 |       // Rendering annotation layer as HTML.
 | ||||||
|       stylePromise |       stylePromise | ||||||
|         .then(async (common, overrides) => { |         .then(async ([common, overrides]) => { | ||||||
|           style.textContent = common + overrides; |           style.textContent = common + "\n" + overrides; | ||||||
| 
 | 
 | ||||||
|           var annotation_viewport = viewport.clone({ dontFlip: true }); |           var annotation_viewport = viewport.clone({ dontFlip: true }); | ||||||
|           var parameters = { |           var parameters = { | ||||||
| @ -326,7 +326,7 @@ var rasterizeXfaLayer = (function rasterizeXfaLayerClosure() { | |||||||
|       foreignObject.appendChild(div); |       foreignObject.appendChild(div); | ||||||
| 
 | 
 | ||||||
|       stylePromise |       stylePromise | ||||||
|         .then(async cssRules => { |         .then(async ([cssRules]) => { | ||||||
|           style.textContent = fontRules + "\n" + cssRules; |           style.textContent = fontRules + "\n" + cssRules; | ||||||
| 
 | 
 | ||||||
|           XfaLayer.render({ |           XfaLayer.render({ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user