mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Replaces all preprocessor directives with PDFJSDev calls.
This commit is contained in:
parent
bf52ff156d
commit
0576c9c6c6
32 changed files with 1145 additions and 904 deletions
|
@ -63,9 +63,11 @@ var PDFThumbnailView = (function PDFThumbnailViewClosure() {
|
|||
|
||||
// Since this is a temporary canvas, we need to fill the canvas with a white
|
||||
// background ourselves. `_getPageDrawContext` uses CSS rules for this.
|
||||
//#if MOZCENTRAL || FIREFOX || GENERIC
|
||||
tempCanvas.mozOpaque = true;
|
||||
//#endif
|
||||
if (typeof PDFJSDev === 'undefined' ||
|
||||
PDFJSDev.test('MOZCENTRAL || FIREFOX || GENERIC')) {
|
||||
tempCanvas.mozOpaque = true;
|
||||
}
|
||||
|
||||
var ctx = tempCanvas.getContext('2d', {alpha: false});
|
||||
ctx.save();
|
||||
ctx.fillStyle = 'rgb(255, 255, 255)';
|
||||
|
@ -215,9 +217,10 @@ var PDFThumbnailView = (function PDFThumbnailViewClosure() {
|
|||
// until rendering/image conversion is complete, to avoid display issues.
|
||||
this.canvas = canvas;
|
||||
|
||||
//#if MOZCENTRAL || FIREFOX || GENERIC
|
||||
canvas.mozOpaque = true;
|
||||
//#endif
|
||||
if (typeof PDFJSDev === 'undefined' ||
|
||||
PDFJSDev.test('MOZCENTRAL || FIREFOX || GENERIC')) {
|
||||
canvas.mozOpaque = true;
|
||||
}
|
||||
var ctx = canvas.getContext('2d', {alpha: false});
|
||||
var outputScale = getOutputScale(ctx);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue