mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
fix(svg) adjust strategy for decoding JPEG images
This commit is contained in:
parent
0dbc68a6d6
commit
8d5d97264e
9 changed files with 66 additions and 15 deletions
|
@ -147,3 +147,21 @@ global.document = {
|
|||
return [];
|
||||
}
|
||||
};
|
||||
|
||||
function Image () {
|
||||
this._src = null;
|
||||
this.onload = null;
|
||||
}
|
||||
Image.prototype = {
|
||||
get src () {
|
||||
return this._src;
|
||||
},
|
||||
set src (value) {
|
||||
this._src = value;
|
||||
if (this.onload) {
|
||||
this.onload();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
global.Image = Image;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue