1
0
Fork 0
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:
巴里切罗 2017-05-08 11:32:44 +08:00
parent 0dbc68a6d6
commit 8d5d97264e
9 changed files with 66 additions and 15 deletions

View file

@ -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;