From c1200d7674165f91438be291ad345f2a6c15a029 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 3 May 2024 09:00:59 +0900 Subject: [PATCH] no message --- .../resources/libs/fims/paintweb/guiScript.js | 3 +-- .../resources/libs/fims/paintweb/paintweb.js | 20 ------------------- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/src/main/webapp/resources/libs/fims/paintweb/guiScript.js b/src/main/webapp/resources/libs/fims/paintweb/guiScript.js index 3d98be78..e11ea504 100644 --- a/src/main/webapp/resources/libs/fims/paintweb/guiScript.js +++ b/src/main/webapp/resources/libs/fims/paintweb/guiScript.js @@ -1552,8 +1552,7 @@ pwlib.gui = function (app) { this.imageSizeChange = function (ev) { var imageSize = _self.elems.imageSize; if (imageSize) { - imageSize.replaceChild(doc.createTextNode(ev.width + 'x' + ev.height), - imageSize.firstChild); + imageSize.replaceChild(doc.createTextNode(ev.width + 'x' + ev.height), imageSize.firstChild); } }; diff --git a/src/main/webapp/resources/libs/fims/paintweb/paintweb.js b/src/main/webapp/resources/libs/fims/paintweb/paintweb.js index 47f205e1..ad6aee70 100644 --- a/src/main/webapp/resources/libs/fims/paintweb/paintweb.js +++ b/src/main/webapp/resources/libs/fims/paintweb/paintweb.js @@ -1835,27 +1835,7 @@ function PaintWeb (win, doc) { h = MathMin(image.height, himg.height); layerContext.clearRect(0, 0, image.width, image.height); - - try { - // Firefox 3 does not clip the image, if needed. layerContext.putImageData(himg, 0, 0, 0, 0, w, h); - - } catch (err) { - // The workaround is to use a new canvas from which we can copy the - // history image without causing any exceptions. - var tmp = doc.createElement('canvas'); - tmp.width = himg.width; - tmp.height = himg.height; - - var tmp2 = tmp.getContext('2d'); - tmp2.putImageData(himg, 0, 0); - - layerContext.drawImage(tmp, 0, 0); - - tmp2 = tmp = null; - delete tmp2, tmp; - } - history.pos = pos; this.events.dispatch(new appEvent.historyUpdate(pos, cpos,