[Sie-announce] SIEコード [1608]

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 1月 24日 (日) 23:23:22 JST


Revision: 1608
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1608
Author:   dhrname
Date:     2010-01-24 23:23:21 +0900 (Sun, 24 Jan 2010)

Log Message:
-----------


Modified Paths:
--------------
    branches/06x/060/sie.js

Modified: branches/06x/060/sie.js
===================================================================
--- branches/06x/060/sie.js	2010-01-24 13:48:44 UTC (rev 1607)
+++ branches/06x/060/sie.js	2010-01-24 14:23:21 UTC (rev 1608)
@@ -2604,6 +2604,12 @@
     var obw = new STLength(obj.getAttribute("width"),obj.clientWidth), obh = new STLength(obj.getAttribute("height"),obj.clientHeight);
     var obwidth = obw.value, obheight = obh.value;
   } catch(e) {stlog.add(e,1209);}
+  var doc = new ActiveXObject("MSXML2.DomDocument");
+  var str = data.content
+    .replace(/!DOCTYPE/,"!--")
+    .replace(/(dtd">|\]>)/,"-->");
+  doc.loadXML(str);
+  var te = doc.documentElement;
   //正規表現でソースをVML用に書き換え
   //xmlns属性削除はバグが起きないように必須
   var dc = data.content
@@ -2666,10 +2672,12 @@
   obst.width = regwv+ "px";
   obst.height = reghv+ "px";
   ob.coordsize = regwv  +" "+  reghv;
+  var dew = new Date();
   var STdocument = new SVGtoVML(obc, obwidth, obheight, regw, regh);
   obj.parentNode.insertBefore(ob, obj);
   STdocument.read(ob);
   STdocument.set(ob);
+  alert((new Date()).getTime() - dew.getTime());
   STdocument = obw = obh = regw = regh = null;
   NAIBU.PaintColor.prototype.cache = {}; //キャッシュの初期化
   if (NAIBU.STObject !== void 0) {NAIBU.STObject.next();}




Sie-announce メーリングリストの案内
Back to archive index