From svnnotify @ sourceforge.jp Fri Sep 2 19:28:40 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 02 Sep 2011 19:28:40 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTA3XSAgU1ZHQUVsZW1l?= =?utf-8?b?bnTjga7mnIDpganljJY=?= Message-ID: <1314959320.721537.23055.nullmailer@users.sourceforge.jp> Revision: 2907 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2907 Author: dhrname Date: 2011-09-02 19:28:40 +0900 (Fri, 02 Sep 2011) Log Message: ----------- SVGAElementの最適化 Modified Paths: -------------- branches/08x/084/org/w3c/dom/svg.js Modified: branches/08x/084/org/w3c/dom/svg.js =================================================================== --- branches/08x/084/org/w3c/dom/svg.js 2011-08-31 14:16:17 UTC (rev 2906) +++ branches/08x/084/org/w3c/dom/svg.js 2011-09-02 10:28:40 UTC (rev 2907) @@ -4850,7 +4850,7 @@ }, false); this.addEventListener("DOMNodeInsertedIntoDocument", function(evt){ var tar = evt.target; - if (!!tar._tar && (tar.nodeType === Node.ELEMENT_NODE)) { + if (!!tar._tar && (tar.nodeType === /*Node.ELEMENT_NODE*/ 1)) { var txts = tar._tar.style; txts.cursor = "hand"; txts.textDecoration = "none"; From svnnotify @ sourceforge.jp Fri Sep 2 20:09:51 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 02 Sep 2011 20:09:51 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTA4XSAgYeimgee0oA==?= =?utf-8?b?44GoZ+imgee0oOOBrkRPTeOBruWHpueQhuOCkuS4gOOBpOOBq+e1seS4gA==?= =?utf-8?b?44GV44Gb44Gf?= Message-ID: <1314961791.027325.7133.nullmailer@users.sourceforge.jp> Revision: 2908 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2908 Author: dhrname Date: 2011-09-02 20:09:50 +0900 (Fri, 02 Sep 2011) Log Message: ----------- a要素とg要素のDOMの処理を一つに統一させた Modified Paths: -------------- branches/08x/084/org/w3c/dom/svg.js Modified: branches/08x/084/org/w3c/dom/svg.js =================================================================== --- branches/08x/084/org/w3c/dom/svg.js 2011-09-02 10:28:40 UTC (rev 2907) +++ branches/08x/084/org/w3c/dom/svg.js 2011-09-02 11:09:50 UTC (rev 2908) @@ -1269,13 +1269,33 @@ evtt = tar.ownerDocument.createEvent("MutationEvents"); evtt.initMutationEvent("DOMNodeInsertedIntoDocument", false, false, null, null, null, null, null); evtt.target = tar; - evtt.eventPhase = Event.AT_TARGET; + evtt.eventPhase = /*Event.AT_TARGET*/ 2; var tce = tar._capter; //tceは登録しておいたリスナーのリスト for (var j=0,tcli=tce.length;j Revision: 2909 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2909 Author: dhrname Date: 2011-09-02 20:47:37 +0900 (Fri, 02 Sep 2011) Log Message: ----------- 0.84 ブランチ合流 Modified Paths: -------------- branches/08x/org/w3c/dom/events.js branches/08x/org/w3c/dom/svg.js Property Changed: ---------------- branches/08x/org/ branches/08x/org/w3c/ branches/08x/org/w3c/core.js branches/08x/org/w3c/dom/css.js branches/08x/org/w3c/dom/events.js branches/08x/org/w3c/dom/svg.js Property changes on: branches/08x/org ___________________________________________________________________ Modified: svn:mergeinfo - /branches/06x/061/org:1864-2067 /branches/06x/062/org:2071-2106 /branches/06x/063/org:2110-2146 /branches/06x/064/org:2149-2177 /branches/06x/065/org:2179-2209 /branches/06x/066/org:2211-2236 /branches/06x/067/org:2257-2282 /branches/06x/068/org:2284-2314 /branches/06x/069/org:2317-2352 /branches/06x/org:1861-2353 /branches/07x/070/org:2363-2383 /branches/07x/071/org:2385-2433 /branches/07x/072/org:2435-2474 /branches/07x/073/org:2476-2509 /branches/07x/074/org:2511-2556 /branches/07x/075/org:2558-2597 /branches/07x/076/org:2600-2631,2642 /branches/07x/077/org:2635-2677 /branches/07x/078/org:2679-2726 /branches/07x/079/org:2728-2745 /branches/07x/org:2356-2753 /branches/07x/org/org:2643 /branches/08x/080/org:2758-2785 /branches/08x/081/org:2787-2814 /branches/08x/082/org:2817-2843 /branches/08x/083/org:2845-2872 + /branches/06x/061/org:1864-2067 /branches/06x/062/org:2071-2106 /branches/06x/063/org:2110-2146 /branches/06x/064/org:2149-2177 /branches/06x/065/org:2179-2209 /branches/06x/066/org:2211-2236 /branches/06x/067/org:2257-2282 /branches/06x/068/org:2284-2314 /branches/06x/069/org:2317-2352 /branches/06x/org:1861-2353 /branches/07x/070/org:2363-2383 /branches/07x/071/org:2385-2433 /branches/07x/072/org:2435-2474 /branches/07x/073/org:2476-2509 /branches/07x/074/org:2511-2556 /branches/07x/075/org:2558-2597 /branches/07x/076/org:2600-2631,2642 /branches/07x/077/org:2635-2677 /branches/07x/078/org:2679-2726 /branches/07x/079/org:2728-2745 /branches/07x/org:2356-2753 /branches/07x/org/org:2643 /branches/08x/080/org:2758-2785 /branches/08x/081/org:2787-2814 /branches/08x/082/org:2817-2843 /branches/08x/083/org:2845-2872 /branches/08x/084/org:2874-2908 Property changes on: branches/08x/org/w3c ___________________________________________________________________ Modified: svn:mergeinfo - /branches/06x/061/org/w3c:1864-2067 /branches/06x/062/org/w3c:2071-2106 /branches/06x/063/org/w3c:2110-2146 /branches/06x/064/org/w3c:2149-2177 /branches/06x/065/org/w3c:2179-2209 /branches/06x/066/org/w3c:2211-2236 /branches/06x/067/org/w3c:2257-2282 /branches/06x/068/org/w3c:2284-2314 /branches/06x/069/org/w3c:2317-2352 /branches/06x/org/w3c:1861-2353 /branches/07x/070/org/w3c:2363-2383 /branches/07x/071/org/w3c:2385-2433 /branches/07x/072/org/w3c:2435-2474 /branches/07x/073/org/w3c:2476-2509 /branches/07x/074/org/w3c:2511-2556 /branches/07x/075/org/w3c:2558-2597 /branches/07x/076/org/w3c:2600-2631,2642 /branches/07x/077/org/w3c:2635-2677 /branches/07x/078/org/w3c:2679-2726 /branches/07x/079/org/w3c:2728-2745 /branches/07x/org/org/w3c:2643 /branches/07x/org/w3c:2356-2753 /branches/08x/080/org/w3c:2758-2785 /branches/08x/081/org/w3c:2787-2814 /branches/08x/082/org/w3c:2817-2843 /branches/08x/083/org/w3c:2845-2872 /branches/ufltima:1621-1788 + /branches/06x/061/org/w3c:1864-2067 /branches/06x/062/org/w3c:2071-2106 /branches/06x/063/org/w3c:2110-2146 /branches/06x/064/org/w3c:2149-2177 /branches/06x/065/org/w3c:2179-2209 /branches/06x/066/org/w3c:2211-2236 /branches/06x/067/org/w3c:2257-2282 /branches/06x/068/org/w3c:2284-2314 /branches/06x/069/org/w3c:2317-2352 /branches/06x/org/w3c:1861-2353 /branches/07x/070/org/w3c:2363-2383 /branches/07x/071/org/w3c:2385-2433 /branches/07x/072/org/w3c:2435-2474 /branches/07x/073/org/w3c:2476-2509 /branches/07x/074/org/w3c:2511-2556 /branches/07x/075/org/w3c:2558-2597 /branches/07x/076/org/w3c:2600-2631,2642 /branches/07x/077/org/w3c:2635-2677 /branches/07x/078/org/w3c:2679-2726 /branches/07x/079/org/w3c:2728-2745 /branches/07x/org/org/w3c:2643 /branches/07x/org/w3c:2356-2753 /branches/08x/080/org/w3c:2758-2785 /branches/08x/081/org/w3c:2787-2814 /branches/08x/082/org/w3c:2817-2843 /branches/08x/083/org/w3c:2845-2872 /branches/08x/084/org/w3c:2874-2908 /branches/ufltima:1621-1788 Property changes on: branches/08x/org/w3c/core.js ___________________________________________________________________ Modified: svn:mergeinfo - /branches/06x/061/org/w3c/core.js:1864-2067 /branches/06x/062/org/w3c/core.js:2071-2106 /branches/06x/063/org/w3c/core.js:2110-2146 /branches/06x/064/org/w3c/core.js:2149-2177 /branches/06x/065/org/w3c/core.js:2179-2209 /branches/06x/066/org/w3c/core.js:2211-2244 /branches/06x/067/org/w3c/core.js:2257-2282 /branches/06x/068/org/w3c/core.js:2284-2314 /branches/06x/069/org/w3c/core.js:2317-2352 /branches/06x/org/w3c/core.js:1861-2353 /branches/07x/070/org/w3c/core.js:2363-2383 /branches/07x/071/org/w3c/core.js:2385-2433 /branches/07x/072/org/w3c/core.js:2435-2474 /branches/07x/073/org/w3c/core.js:2476-2509 /branches/07x/074/org/w3c/core.js:2511-2556 /branches/07x/075/org/w3c/core.js:2558-2597 /branches/07x/076/org/w3c/core.js:2600-2631,2642 /branches/07x/077/org/w3c/core.js:2635-2677 /branches/07x/078/org/w3c/core.js:2679-2726 /branches/07x/079/org/w3c/core.js:2728-2745 /branches/07x/org/org/w3c/core.js:2643 /branches/07x/org/w3c/core.js:2356-2753 /branches/08x/080/org/w3c/core.js:2758-2785 /branches/08x/081/org/w3c/core.js:2787-2814 /branches/08x/082/org/w3c/core.js:2817-2843 /branches/08x/083/org/w3c/core.js:2845-2872 /branches/ufltima/core.js:1621-1854 + /branches/06x/061/org/w3c/core.js:1864-2067 /branches/06x/062/org/w3c/core.js:2071-2106 /branches/06x/063/org/w3c/core.js:2110-2146 /branches/06x/064/org/w3c/core.js:2149-2177 /branches/06x/065/org/w3c/core.js:2179-2209 /branches/06x/066/org/w3c/core.js:2211-2244 /branches/06x/067/org/w3c/core.js:2257-2282 /branches/06x/068/org/w3c/core.js:2284-2314 /branches/06x/069/org/w3c/core.js:2317-2352 /branches/06x/org/w3c/core.js:1861-2353 /branches/07x/070/org/w3c/core.js:2363-2383 /branches/07x/071/org/w3c/core.js:2385-2433 /branches/07x/072/org/w3c/core.js:2435-2474 /branches/07x/073/org/w3c/core.js:2476-2509 /branches/07x/074/org/w3c/core.js:2511-2556 /branches/07x/075/org/w3c/core.js:2558-2597 /branches/07x/076/org/w3c/core.js:2600-2631,2642 /branches/07x/077/org/w3c/core.js:2635-2677 /branches/07x/078/org/w3c/core.js:2679-2726 /branches/07x/079/org/w3c/core.js:2728-2745 /branches/07x/org/org/w3c/core.js:2643 /branches/07x/org/w3c/core.js:2356-2753 /branches/08x/080/org/w3c/core.js:2758-2785 /branches/08x/081/org/w3c/core.js:2787-2814 /branches/08x/082/org/w3c/core.js:2817-2843 /branches/08x/083/org/w3c/core.js:2845-2872 /branches/08x/084/org/w3c/core.js:2874-2908 /branches/ufltima/core.js:1621-1854 Property changes on: branches/08x/org/w3c/dom/css.js ___________________________________________________________________ Modified: svn:mergeinfo - /branches/06x/061/org/w3c/dom/css.js:1864-2067 /branches/06x/062/org/w3c/dom/css.js:2071-2106 /branches/06x/063/org/w3c/dom/css.js:2110-2146 /branches/06x/064/org/w3c/dom/css.js:2149-2177 /branches/06x/065/org/w3c/dom/css.js:2179-2209 /branches/06x/066/org/w3c/dom/css.js:2211-2236 /branches/06x/067/org/w3c/dom/css.js:2257-2282 /branches/06x/068/org/w3c/dom/css.js:2284-2314 /branches/06x/069/org/w3c/dom/css.js:2317-2352 /branches/06x/org/w3c/dom/css.js:1861-2353 /branches/07x/070/org/w3c/dom/css.js:2363-2383 /branches/07x/071/org/w3c/dom/css.js:2385-2433 /branches/07x/072/org/w3c/dom/css.js:2435-2474 /branches/07x/073/org/w3c/dom/css.js:2476-2509 /branches/07x/074/org/w3c/dom/css.js:2511-2556 /branches/07x/075/org/w3c/dom/css.js:2558-2597 /branches/07x/076/org/w3c/dom/css.js:2600-2631,2642 /branches/07x/077/org/w3c/dom/css.js:2635-2677 /branches/07x/078/org/w3c/dom/css.js:2679-2726 /branches/07x/079/org/w3c/dom/css.js:2728-2745 /branches/07x/org/org/w3c/dom/css.js:2643 /branches/07x/org/w3c/dom/css.js:2356-2753 /branches/08x/080/org/w3c/dom/css.js:2758-2785 /branches/08x/081/org/w3c/dom/css.js:2787-2814 /branches/08x/082/org/w3c/dom/css.js:2817-2843 /branches/08x/083/org/w3c/dom/css.js:2845-2872 /branches/ufltima/dom/css.js:1621-1855 + /branches/06x/061/org/w3c/dom/css.js:1864-2067 /branches/06x/062/org/w3c/dom/css.js:2071-2106 /branches/06x/063/org/w3c/dom/css.js:2110-2146 /branches/06x/064/org/w3c/dom/css.js:2149-2177 /branches/06x/065/org/w3c/dom/css.js:2179-2209 /branches/06x/066/org/w3c/dom/css.js:2211-2236 /branches/06x/067/org/w3c/dom/css.js:2257-2282 /branches/06x/068/org/w3c/dom/css.js:2284-2314 /branches/06x/069/org/w3c/dom/css.js:2317-2352 /branches/06x/org/w3c/dom/css.js:1861-2353 /branches/07x/070/org/w3c/dom/css.js:2363-2383 /branches/07x/071/org/w3c/dom/css.js:2385-2433 /branches/07x/072/org/w3c/dom/css.js:2435-2474 /branches/07x/073/org/w3c/dom/css.js:2476-2509 /branches/07x/074/org/w3c/dom/css.js:2511-2556 /branches/07x/075/org/w3c/dom/css.js:2558-2597 /branches/07x/076/org/w3c/dom/css.js:2600-2631,2642 /branches/07x/077/org/w3c/dom/css.js:2635-2677 /branches/07x/078/org/w3c/dom/css.js:2679-2726 /branches/07x/079/org/w3c/dom/css.js:2728-2745 /branches/07x/org/org/w3c/dom/css.js:2643 /branches/07x/org/w3c/dom/css.js:2356-2753 /branches/08x/080/org/w3c/dom/css.js:2758-2785 /branches/08x/081/org/w3c/dom/css.js:2787-2814 /branches/08x/082/org/w3c/dom/css.js:2817-2843 /branches/08x/083/org/w3c/dom/css.js:2845-2872 /branches/08x/084/org/w3c/dom/css.js:2874-2908 /branches/ufltima/dom/css.js:1621-1855 Modified: branches/08x/org/w3c/dom/events.js =================================================================== --- branches/08x/org/w3c/dom/events.js 2011-09-02 11:09:50 UTC (rev 2908) +++ branches/08x/org/w3c/dom/events.js 2011-09-02 11:47:37 UTC (rev 2909) @@ -121,6 +121,8 @@ var evt = node.ownerDocument.createEvent("MouseEvents"); evt.initMouseEvent(type, true, true, node.ownerDocument.defaultView, 0); node.dispatchEvent(evt); + /*cancelBubbleプロパティについては、IEのMSDNなどを参照*/ + node.ownerDocument._window.event.cancelBubble = true; evt = null; }; })(that) @@ -131,7 +133,7 @@ /*void*/ Node.prototype.removeEventListener = function( /*string*/ type, /*EventListener*/ listener, /*boolean*/ useCapture) { var tce = this._capter; for (var i=0,tcli=tce.length;i -1) { tar._tar.src = uri; + tar = xmlhttp = null; } else if ((uri.indexOf("http:") > -1) || (uri.indexOf(".") === 0)){ if (tar.localName === "image") { tar._tar.src = uri; + } else { + /*ここの_svgload_limitedは、リンクを読み込んだ後でSVGLoadイベントを実行させるという遅延処理で必要*/ + tar.ownerDocument.documentElement._svgload_limited++; } xmlhttp.open("GET", uri, false); xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest"); xmlhttp.onreadystatechange = function() { - if (xmlhttp.readyState === 4 && xmlhttp.status === 200) { + if ((xmlhttp.readyState === 4) && (xmlhttp.status === 200)) { var type = xmlhttp.getResponseHeader('Content-Type') || "text", doc, str, ele, ev; if ((type.indexOf("text") > -1) || (type.indexOf("xml") > -1) || (type.indexOf("script") > -1)) { //ファイルがtext形式である場合 @@ -1078,19 +1083,31 @@ } else if (!!tar._tar) { tar._tar.src = uri; } + /*S_LoadイベントとはSIE独自のイベント。 + *XLink言語によって、リンク先のコンテンツが読み込まれた時点で発火する + */ ev = tar.ownerDocument.createEvent("SVGEvents"); - ev.initEvent("SVGLoad", false, false); + ev.initEvent("S_Load", false, false); tar.dispatchEvent(ev); - type = doc = str = ev = null; + tar.ownerDocument.documentElement._svgload_limited--; + /*すべてのリンクが読み込みを終了した場合、SVGLoadイベントを発火*/ + if (tar.ownerDocument.documentElement._svgload_limited < 0) { + ev = tar.ownerDocument.createEvent("SVGEvents"); + ev.initEvent("SVGLoad", false, false); + tar.ownerDocument.documentElement.dispatchEvent(ev); + } + tar = type = doc = str = ev = null; /*IEのメモリリーク対策として、空関数を入力*/ xmlhttp.onreadystatechange = NAIBU.emptyFunction; + xmlhttp = null; } }; xmlhttp.send(null); } } + tar.ownerDocument.documentElement._svgload_limited--; } - evt = tar = base = href = egbase = ep = b = lh = uri = xmlhttp = ui = id = doc = ele = ev = show= null; + evt = base = href = egbase = ep = b = lh = uri = ui = id = doc = ele = ev = show= null; }, false); tar = evt = null; }, false); @@ -1241,21 +1258,44 @@ evt = name = tv = ovb = par = tp = sa = mos = null; }, false); this.addEventListener("SVGLoad", function(evt){ + /*以下のDOMAttrModifiedは浮上フェーズのときに、再描画をするように + *処理を書いたもの。属性が書き換わるたびに、再描画される + */ evt.target.addEventListener("DOMAttrModified", function(evt){ if (evt.eventPhase === /*Event.BUBBLING_PHASE*/ 3) { var tar = evt.target, - evtt; + evtt; if (tar.parentNode) { evtt = tar.ownerDocument.createEvent("MutationEvents"); evtt.initMutationEvent("DOMNodeInsertedIntoDocument", false, false, null, null, null, null, null); evtt.target = tar; - evtt.eventPhase = Event.AT_TARGET; + evtt.eventPhase = /*Event.AT_TARGET*/ 2; var tce = tar._capter; //tceは登録しておいたリスナーのリスト for (var j=0,tcli=tce.length;j sw ? sw : w; + viewHeight = h > sh ? sh : h; backrs = backr.currentStyle; bfl = _parseFloat(backrs.left); bft = _parseFloat(backrs.top); @@ -1842,7 +1871,9 @@ bt = bft; dcp.style.top = -bt+ "px"; } - this._document = s; + backright = bl + viewWidth + 1; + backdown = bt + viewHeight + 1; + trstyle.clip = "rect(" +bt+ "px " +backright+ "px " +backdown+ "px " +bl+ "px)"; this._document = s; if ("_svgload_limited" in s.documentElement) { /*_svgload_limitedプロパティはXlink言語が使われていない限り、0である。 *xlink:href属性が指定されるたびに+1となる。 @@ -1871,7 +1902,7 @@ } s.defaultView._cache = s.defaultView._cache_ele = null; oba = _doc = evt = _doc = objei = tar = tview = objw = objh = n = att = sdt = sp = dcp = backr = sw = sh = style = fontSize = null; - trstyle = tpstyle = backrs = text = texti = i = bfl = bft = bl = bt = text = _parseFloat = null; + trstyle = tpstyle = backrs = text = texti = i = bfl = bft = bl = bt = text = _parseFloat = w = h = viewWidth = viewHeight = backdown = backright = null; /*IEのメモリリーク対策として、空関数を入力*/ this.xmlhttp.onreadystatechange = NAIBU.emptyFunction; alert(+(new Date()) - dsd.getTime()) @@ -1952,7 +1983,7 @@ } evt = null; }, false); - this.addEventListener("SVGLoad", function(evt){ + this.addEventListener("S_Load", function(evt){ var tar = evt.target, sheet = tar.sheet, styleText = tar._text, @@ -1977,7 +2008,6 @@ } sheet.cssRules[sheet.cssRules.length] = scri; } - tod.documentElement._svgload_limited--; tod.documentElement.addEventListener("DOMNodeInsertedIntoDocument", function(evt) { var tar = evt.target, doc = tar.ownerDocument, @@ -1995,11 +2025,6 @@ } tar = doc = rules = null; }, true); - if (tod.documentElement._svgload_limited < 0) { - evt = tod.createEvent("SVGEvents"); - evt.initEvent("SVGLoad", false, false); - tod.documentElement.dispatchEvent(evt); - } tar = evt = style = sheet = styleText = tod = i = rules = rli = null; }, false); this.addEventListener("DOMNodeInserted", function(evt){ @@ -2014,7 +2039,7 @@ var tar = evt.target; if ((evt.eventPhase === Event.AT_TARGET) && !tar.getAttributeNodeNS("http://www.w3.org/1999/xlink", "xlink:href")) { var evtt = tar.ownerDocument.createEvent("SVGEvents"); - evtt.initEvent("SVGLoad", false, false); + evtt.initEvent("S_Load", false, false); evt.currentTarget.dispatchEvent(evtt); } tar = evt = null; @@ -4472,14 +4497,8 @@ grad = ele = t = grad2 = href = stops = length = color = colors = opacity = null; return; } - while (grad2 && !grad2.hasChildNodes()) { //stopを子要素に持つgradient要素を探す - href = grad2.getAttributeNS("http://www.w3.org/1999/xlink", "href"); - if (href) { - href.match(/#(.+)/); - grad2 = grad2.ownerDocument.getElementById(RegExp.$1); - } else { - break; - } + if (grad._instance) { //xlink言語で呼び出されたノードが_instanceに収納されているならば + grad2 = grad._instance; } stops = grad2.getElementsByTagNameNS("http://www.w3.org/2000/svg", "stop"); if (!stops) { @@ -4508,6 +4527,10 @@ ele["o:opacity2"] = opacity[0]+ ""; /*SVGRadialGradientElementインターフェースで利用する*/ grad._color = color; + var gt = grad2.getAttributeNS(null, "gradientTransform"); + if (gt) { + grad.setAttributeNS(null, "transform", gt); + } grad = grad2 = ele = stops = length = color = colors = opacity = evt = t = href = stop = sstyle = ci = null; }, false); return this; @@ -4592,10 +4615,6 @@ cx = cx*wid + nx; cy = cy*hei + ny; rx = r*wid; ry = r*hei; nx = ny = wid = hei = null; } - var gt = grad.getAttributeNS(null, "gradientTransform"); - if (gt) { - grad.setAttributeNS(null, "transform", gt); - } var matrix = tar.getScreenCTM().multiply(grad.getCTM()); el = cx - rx; et = cy - ry; er = cx + rx; eb = cy + ry; var rrx = rx * 0.55228, rry = ry * 0.55228; @@ -4811,26 +4830,11 @@ st = "new"; } tar.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:show", st); - tar.addEventListener("DOMAttrModified", function(evt){ - var tar = evt.target; - var s = tar.getElementsByTagNameNS("http://www.w3.org/2000/svg", "*"); - if (s) { - var evtt = tar.ownerDocument.createEvent("MutationEvents"); - evtt.initMutationEvent("DOMNodeInsertedIntoDocument", false, false, null, null, null, null, null); - for (var i=0,sli=s.length;i Revision: 2910 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2910 Author: dhrname Date: 2011-09-02 20:49:19 +0900 (Fri, 02 Sep 2011) Log Message: ----------- Added Paths: ----------- branches/08x/085/ From svnnotify @ sourceforge.jp Fri Sep 2 20:53:29 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 02 Sep 2011 20:53:29 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTExXSAwLjg1IGJyYW5j?= =?utf-8?q?hes?= Message-ID: <1314964409.955737.31459.nullmailer@users.sourceforge.jp> Revision: 2911 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2911 Author: dhrname Date: 2011-09-02 20:53:29 +0900 (Fri, 02 Sep 2011) Log Message: ----------- 0.85 branches Added Paths: ----------- branches/08x/085/org/ Property changes on: branches/08x/085/org ___________________________________________________________________ Added: svn:mergeinfo + /branches/06x/061/org:1864-2067 /branches/06x/062/org:2071-2106 /branches/06x/063/org:2110-2146 /branches/06x/064/org:2149-2177 /branches/06x/065/org:2179-2209 /branches/06x/066/org:2211-2236 /branches/06x/067/org:2257-2282 /branches/06x/068/org:2284-2314 /branches/06x/069/org:2317-2352 /branches/06x/org:1861-2353 /branches/07x/070/org:2363-2383 /branches/07x/071/org:2385-2433 /branches/07x/072/org:2435-2474 /branches/07x/073/org:2476-2509 /branches/07x/074/org:2511-2556 /branches/07x/075/org:2558-2597 /branches/07x/076/org:2600-2631,2642 /branches/07x/077/org:2635-2677 /branches/07x/078/org:2679-2726 /branches/07x/079/org:2728-2745 /branches/07x/org:2356-2753 /branches/07x/org/org:2643 /branches/08x/080/org:2758-2785 /branches/08x/081/org:2787-2814 /branches/08x/082/org:2817-2843 /branches/08x/083/org:2845-2872 /branches/08x/084/org:2874-2908 From svnnotify @ sourceforge.jp Fri Sep 2 20:55:49 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 02 Sep 2011 20:55:49 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTEyXSAwLiA4NOODog==?= =?utf-8?b?44K444Ol44O844Or44CA57WQ5ZCI?= Message-ID: <1314964549.998183.740.nullmailer@users.sourceforge.jp> Revision: 2912 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2912 Author: dhrname Date: 2011-09-02 20:55:49 +0900 (Fri, 02 Sep 2011) Log Message: ----------- 0.84モジュール 結合 Modified Paths: -------------- branches/08x/sie.js Modified: branches/08x/sie.js =================================================================== --- branches/08x/sie.js 2011-09-02 11:53:29 UTC (rev 2911) +++ branches/08x/sie.js 2011-09-02 11:55:49 UTC (rev 2912) @@ -985,6 +985,8 @@ var evt = node.ownerDocument.createEvent("MouseEvents"); evt.initMouseEvent(type, true, true, node.ownerDocument.defaultView, 0); node.dispatchEvent(evt); + /*cancelBubbleプロパティについては、IEのMSDNなどを参照*/ + node.ownerDocument._window.event.cancelBubble = true; evt = null; }; })(that) @@ -995,7 +997,7 @@ /*void*/ Node.prototype.removeEventListener = function( /*string*/ type, /*EventListener*/ listener, /*boolean*/ useCapture) { var tce = this._capter; for (var i=0,tcli=tce.length;i -1) { tar._tar.src = uri; + tar = xmlhttp = null; } else if ((uri.indexOf("http:") > -1) || (uri.indexOf(".") === 0)){ if (tar.localName === "image") { tar._tar.src = uri; + } else { + /*ここの_svgload_limitedは、リンクを読み込んだ後でSVGLoadイベントを実行させるという遅延処理で必要*/ + tar.ownerDocument.documentElement._svgload_limited++; } xmlhttp.open("GET", uri, false); xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest"); xmlhttp.onreadystatechange = function() { - if (xmlhttp.readyState === 4 && xmlhttp.status === 200) { + if ((xmlhttp.readyState === 4) && (xmlhttp.status === 200)) { var type = xmlhttp.getResponseHeader('Content-Type') || "text", doc, str, ele, ev; if ((type.indexOf("text") > -1) || (type.indexOf("xml") > -1) || (type.indexOf("script") > -1)) { //ファイルがtext形式である場合 @@ -3376,19 +3386,31 @@ } else if (!!tar._tar) { tar._tar.src = uri; } + /*S_LoadイベントとはSIE独自のイベント。 + *XLink言語によって、リンク先のコンテンツが読み込まれた時点で発火する + */ ev = tar.ownerDocument.createEvent("SVGEvents"); - ev.initEvent("SVGLoad", false, false); + ev.initEvent("S_Load", false, false); tar.dispatchEvent(ev); - type = doc = str = ev = null; + tar.ownerDocument.documentElement._svgload_limited--; + /*すべてのリンクが読み込みを終了した場合、SVGLoadイベントを発火*/ + if (tar.ownerDocument.documentElement._svgload_limited < 0) { + ev = tar.ownerDocument.createEvent("SVGEvents"); + ev.initEvent("SVGLoad", false, false); + tar.ownerDocument.documentElement.dispatchEvent(ev); + } + tar = type = doc = str = ev = null; /*IEのメモリリーク対策として、空関数を入力*/ xmlhttp.onreadystatechange = NAIBU.emptyFunction; + xmlhttp = null; } }; xmlhttp.send(null); } } + tar.ownerDocument.documentElement._svgload_limited--; } - evt = tar = base = href = egbase = ep = b = lh = uri = xmlhttp = ui = id = doc = ele = ev = show= null; + evt = base = href = egbase = ep = b = lh = uri = ui = id = doc = ele = ev = show= null; }, false); tar = evt = null; }, false); @@ -3539,21 +3561,44 @@ evt = name = tv = ovb = par = tp = sa = mos = null; }, false); this.addEventListener("SVGLoad", function(evt){ + /*以下のDOMAttrModifiedは浮上フェーズのときに、再描画をするように + *処理を書いたもの。属性が書き換わるたびに、再描画される + */ evt.target.addEventListener("DOMAttrModified", function(evt){ if (evt.eventPhase === /*Event.BUBBLING_PHASE*/ 3) { var tar = evt.target, - evtt; + evtt; if (tar.parentNode) { evtt = tar.ownerDocument.createEvent("MutationEvents"); evtt.initMutationEvent("DOMNodeInsertedIntoDocument", false, false, null, null, null, null, null); evtt.target = tar; - evtt.eventPhase = Event.AT_TARGET; + evtt.eventPhase = /*Event.AT_TARGET*/ 2; var tce = tar._capter; //tceは登録しておいたリスナーのリスト for (var j=0,tcli=tce.length;j sw ? sw : w; + viewHeight = h > sh ? sh : h; backrs = backr.currentStyle; bfl = _parseFloat(backrs.left); bft = _parseFloat(backrs.top); @@ -4139,7 +4173,9 @@ bt = bft; dcp.style.top = -bt+ "px"; } - this._document = s; + backright = bl + viewWidth + 1; + backdown = bt + viewHeight + 1; + trstyle.clip = "rect(" +bt+ "px " +backright+ "px " +backdown+ "px " +bl+ "px)"; this._document = s; if ("_svgload_limited" in s.documentElement) { /*_svgload_limitedプロパティはXlink言語が使われていない限り、0である。 *xlink:href属性が指定されるたびに+1となる。 @@ -4168,7 +4204,7 @@ } s.defaultView._cache = s.defaultView._cache_ele = null; oba = _doc = evt = _doc = objei = tar = tview = objw = objh = n = att = sdt = sp = dcp = backr = sw = sh = style = fontSize = null; - trstyle = tpstyle = backrs = text = texti = i = bfl = bft = bl = bt = text = _parseFloat = null; + trstyle = tpstyle = backrs = text = texti = i = bfl = bft = bl = bt = text = _parseFloat = w = h = viewWidth = viewHeight = backdown = backright = null; /*IEのメモリリーク対策として、空関数を入力*/ this.xmlhttp.onreadystatechange = NAIBU.emptyFunction; if (this._next) { @@ -4248,7 +4284,7 @@ } evt = null; }, false); - this.addEventListener("SVGLoad", function(evt){ + this.addEventListener("S_Load", function(evt){ var tar = evt.target, sheet = tar.sheet, styleText = tar._text, @@ -4273,7 +4309,6 @@ } sheet.cssRules[sheet.cssRules.length] = scri; } - tod.documentElement._svgload_limited--; tod.documentElement.addEventListener("DOMNodeInsertedIntoDocument", function(evt) { var tar = evt.target, doc = tar.ownerDocument, @@ -4291,11 +4326,6 @@ } tar = doc = rules = null; }, true); - if (tod.documentElement._svgload_limited < 0) { - evt = tod.createEvent("SVGEvents"); - evt.initEvent("SVGLoad", false, false); - tod.documentElement.dispatchEvent(evt); - } tar = evt = style = sheet = styleText = tod = i = rules = rli = null; }, false); this.addEventListener("DOMNodeInserted", function(evt){ @@ -4310,7 +4340,7 @@ var tar = evt.target; if ((evt.eventPhase === Event.AT_TARGET) && !tar.getAttributeNodeNS("http://www.w3.org/1999/xlink", "xlink:href")) { var evtt = tar.ownerDocument.createEvent("SVGEvents"); - evtt.initEvent("SVGLoad", false, false); + evtt.initEvent("S_Load", false, false); evt.currentTarget.dispatchEvent(evtt); } tar = evt = null; @@ -6768,14 +6798,8 @@ grad = ele = t = grad2 = href = stops = length = color = colors = opacity = null; return; } - while (grad2 && !grad2.hasChildNodes()) { //stopを子要素に持つgradient要素を探す - href = grad2.getAttributeNS("http://www.w3.org/1999/xlink", "href"); - if (href) { - href.match(/#(.+)/); - grad2 = grad2.ownerDocument.getElementById(RegExp.$1); - } else { - break; - } + if (grad._instance) { //xlink言語で呼び出されたノードが_instanceに収納されているならば + grad2 = grad._instance; } stops = grad2.getElementsByTagNameNS("http://www.w3.org/2000/svg", "stop"); if (!stops) { @@ -6804,6 +6828,10 @@ ele["o:opacity2"] = opacity[0]+ ""; /*SVGRadialGradientElementインターフェースで利用する*/ grad._color = color; + var gt = grad2.getAttributeNS(null, "gradientTransform"); + if (gt) { + grad.setAttributeNS(null, "transform", gt); + } grad = grad2 = ele = stops = length = color = colors = opacity = evt = t = href = stop = sstyle = ci = null; }, false); return this; @@ -6888,10 +6916,6 @@ cx = cx*wid + nx; cy = cy*hei + ny; rx = r*wid; ry = r*hei; nx = ny = wid = hei = null; } - var gt = grad.getAttributeNS(null, "gradientTransform"); - if (gt) { - grad.setAttributeNS(null, "transform", gt); - } var matrix = tar.getScreenCTM().multiply(grad.getCTM()); el = cx - rx; et = cy - ry; er = cx + rx; eb = cy + ry; var rrx = rx * 0.55228, rry = ry * 0.55228; @@ -7107,26 +7131,11 @@ st = "new"; } tar.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:show", st); - tar.addEventListener("DOMAttrModified", function(evt){ - var tar = evt.target; - var s = tar.getElementsByTagNameNS("http://www.w3.org/2000/svg", "*"); - if (s) { - var evtt = tar.ownerDocument.createEvent("MutationEvents"); - evtt.initMutationEvent("DOMNodeInsertedIntoDocument", false, false, null, null, null, null, null); - for (var i=0,sli=s.length;i Revision: 2913 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2913 Author: dhrname Date: 2011-09-02 21:19:32 +0900 (Fri, 02 Sep 2011) Log Message: ----------- 0.84 trunk Modified Paths: -------------- trunk/sie.js Property Changed: ---------------- trunk/sie.js Modified: trunk/sie.js =================================================================== --- trunk/sie.js 2011-09-02 11:55:49 UTC (rev 2912) +++ trunk/sie.js 2011-09-02 12:19:32 UTC (rev 2913) @@ -985,6 +985,8 @@ var evt = node.ownerDocument.createEvent("MouseEvents"); evt.initMouseEvent(type, true, true, node.ownerDocument.defaultView, 0); node.dispatchEvent(evt); + /*cancelBubbleプロパティについては、IEのMSDNなどを参照*/ + node.ownerDocument._window.event.cancelBubble = true; evt = null; }; })(that) @@ -995,7 +997,7 @@ /*void*/ Node.prototype.removeEventListener = function( /*string*/ type, /*EventListener*/ listener, /*boolean*/ useCapture) { var tce = this._capter; for (var i=0,tcli=tce.length;i -1) { tar._tar.src = uri; + tar = xmlhttp = null; } else if ((uri.indexOf("http:") > -1) || (uri.indexOf(".") === 0)){ if (tar.localName === "image") { tar._tar.src = uri; + } else { + /*ここの_svgload_limitedは、リンクを読み込んだ後でSVGLoadイベントを実行させるという遅延処理で必要*/ + tar.ownerDocument.documentElement._svgload_limited++; } xmlhttp.open("GET", uri, false); xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest"); xmlhttp.onreadystatechange = function() { - if (xmlhttp.readyState === 4 && xmlhttp.status === 200) { + if ((xmlhttp.readyState === 4) && (xmlhttp.status === 200)) { var type = xmlhttp.getResponseHeader('Content-Type') || "text", doc, str, ele, ev; if ((type.indexOf("text") > -1) || (type.indexOf("xml") > -1) || (type.indexOf("script") > -1)) { //ファイルがtext形式である場合 @@ -3376,19 +3386,31 @@ } else if (!!tar._tar) { tar._tar.src = uri; } + /*S_LoadイベントとはSIE独自のイベント。 + *XLink言語によって、リンク先のコンテンツが読み込まれた時点で発火する + */ ev = tar.ownerDocument.createEvent("SVGEvents"); - ev.initEvent("SVGLoad", false, false); + ev.initEvent("S_Load", false, false); tar.dispatchEvent(ev); - type = doc = str = ev = null; + tar.ownerDocument.documentElement._svgload_limited--; + /*すべてのリンクが読み込みを終了した場合、SVGLoadイベントを発火*/ + if (tar.ownerDocument.documentElement._svgload_limited < 0) { + ev = tar.ownerDocument.createEvent("SVGEvents"); + ev.initEvent("SVGLoad", false, false); + tar.ownerDocument.documentElement.dispatchEvent(ev); + } + tar = type = doc = str = ev = null; /*IEのメモリリーク対策として、空関数を入力*/ xmlhttp.onreadystatechange = NAIBU.emptyFunction; + xmlhttp = null; } }; xmlhttp.send(null); } } + tar.ownerDocument.documentElement._svgload_limited--; } - evt = tar = base = href = egbase = ep = b = lh = uri = xmlhttp = ui = id = doc = ele = ev = show= null; + evt = base = href = egbase = ep = b = lh = uri = ui = id = doc = ele = ev = show= null; }, false); tar = evt = null; }, false); @@ -3539,21 +3561,44 @@ evt = name = tv = ovb = par = tp = sa = mos = null; }, false); this.addEventListener("SVGLoad", function(evt){ + /*以下のDOMAttrModifiedは浮上フェーズのときに、再描画をするように + *処理を書いたもの。属性が書き換わるたびに、再描画される + */ evt.target.addEventListener("DOMAttrModified", function(evt){ if (evt.eventPhase === /*Event.BUBBLING_PHASE*/ 3) { var tar = evt.target, - evtt; + evtt; if (tar.parentNode) { evtt = tar.ownerDocument.createEvent("MutationEvents"); evtt.initMutationEvent("DOMNodeInsertedIntoDocument", false, false, null, null, null, null, null); evtt.target = tar; - evtt.eventPhase = Event.AT_TARGET; + evtt.eventPhase = /*Event.AT_TARGET*/ 2; var tce = tar._capter; //tceは登録しておいたリスナーのリスト for (var j=0,tcli=tce.length;j Revision: 2914 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2914 Author: dhrname Date: 2011-09-02 21:25:36 +0900 (Fri, 02 Sep 2011) Log Message: ----------- Modified Paths: -------------- trunk/ChangeLog.txt Modified: trunk/ChangeLog.txt =================================================================== --- trunk/ChangeLog.txt 2011-09-02 12:19:32 UTC (rev 2913) +++ trunk/ChangeLog.txt 2011-09-02 12:25:36 UTC (rev 2914) @@ -1,4 +1,21 @@ -?2011-8-22 version 0.83 +?2011-9-2 version 0.84beta +version 0.83からの変更点 +1, div要素のmarginプロパティ指定地に関するミスを修正 +2, SVGURIReferenceインターフェースと、関連する要素を改良して、SVGLoadイベントが2度起きるバグを修正 +3, SVGLinearGradientElementインターフェースの改良と、SVGURIReferenceインターフェースの修正 +4, svg要素のwidthとheight属性がフレーム枠よりも小さい場合は、画像の切り取りが必要になるため、0.83で外したクリップ処理を復活させた +5, SVGURIReferenceインターフェースがわかりにくかったので、内部の処理にコメントを追加 +6, _ca関数にローカル関数_searchを導入して、軽量化 +7, チケット #25062 「g要素にイベント属性が指定されたときに動作しない」を修正 +8, removeEventListenerメソッドの作動しなかったバグを修正 +9, SVGSVGElementにコメントを追加 +10, マウスイベントの二重起動という問題があったので、それを修正 +11, EventのpreventDefaultメソッドが正常に作動しないバグを修正 +12, SVGAElementの最適化 +13, a要素とg要素のDOMの処理を一つに統一させた + + +2011-8-22 version 0.83 version 0.82からの変更点 1, iframe要素で代用ができるので、画像のクリップ処理を関数_caから削除した 2, バッファ処理で単語のミスがあったので修正 From svnnotify @ sourceforge.jp Fri Sep 2 21:46:45 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 02 Sep 2011 21:46:45 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTE1XSAg57Wx5ZCI44Gr?= =?utf-8?b?5aSx5pWX44GX44Gm44GE44Gf44Gu44KS5L+u5q2j?= Message-ID: <1314967605.223517.858.nullmailer@users.sourceforge.jp> Revision: 2915 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2915 Author: dhrname Date: 2011-09-02 21:46:45 +0900 (Fri, 02 Sep 2011) Log Message: ----------- 統合に失敗していたのを修正 Modified Paths: -------------- trunk/sie.js Modified: trunk/sie.js =================================================================== --- trunk/sie.js 2011-09-02 12:25:36 UTC (rev 2914) +++ trunk/sie.js 2011-09-02 12:46:45 UTC (rev 2915) @@ -1,4 +1,4 @@ -?/*SIE-SVG without Plugin under LGPL2.1 & GPL2.0 & Mozilla Public Lisence +/*SIE-SVG without Plugin under LGPL2.1 & GPL2.0 & Mozilla Public Lisence *公式ページは http://sie.sourceforge.jp/ *利用方法は *http://sie.sourceforge.jp/ @@ -4111,8 +4111,6 @@ tar.setAttributeNodeNS(att); } str = attr = null; - ifr.style.width = tview.width+3+ "px"; - ifr.style.height = tview.height+3+ "px"; dcp.style.width = tview.width+ "px"; dcp.style.height = tview.height+ "px"; dcp.coordsize = tview.width+ " " +tview.height; @@ -4157,7 +4155,11 @@ tpstyle = objei.style; trstyle.visibility = "visible"; trstyle.position = "absolute"; + /*以下、画像を切り取り*/ trstyle.overflow = "hidden"; + /*ウィンドウ枠の長さを決定する*/ + viewWidth = w > sw ? sw : w; + viewHeight = h > sh ? sh : h; backrs = backr.currentStyle; bfl = _parseFloat(backrs.left); bft = _parseFloat(backrs.top); From svnnotify @ sourceforge.jp Sat Sep 3 20:30:28 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sat, 03 Sep 2011 20:30:28 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTE3XSAgYWRkRXZlbnRM?= =?utf-8?b?aXN0ZW5lcuODoeOCveODg+ODieOBqGluaXRFdmVudOODoeOCveODg+ODiQ==?= =?utf-8?b?44Gu5aSJ5pWw44Gu6Kej5pS+5Yem55CG44KS5Yqg44GI44Gf?= Message-ID: <1315049428.421077.7309.nullmailer@users.sourceforge.jp> Revision: 2917 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2917 Author: dhrname Date: 2011-09-03 20:30:28 +0900 (Sat, 03 Sep 2011) Log Message: ----------- addEventListenerメソッドとinitEventメソッドの変数の解放処理を加えた Modified Paths: -------------- branches/08x/085/org/w3c/dom/events.js Modified: branches/08x/085/org/w3c/dom/events.js =================================================================== --- branches/08x/085/org/w3c/dom/events.js 2011-09-02 12:53:13 UTC (rev 2916) +++ branches/08x/085/org/w3c/dom/events.js 2011-09-03 11:30:28 UTC (rev 2917) @@ -128,7 +128,7 @@ })(that) ); } - s = t = that = null; + type = listener = useCapture = s = t = that = null; }; /*void*/ Node.prototype.removeEventListener = function( /*string*/ type, /*EventListener*/ listener, /*boolean*/ useCapture) { var tce = this._capter; @@ -280,6 +280,7 @@ this.type = eventTypeArg; this.bubbles = canBubbleArg; this.cancelable = cancelableArg; + eventTypeArg = canBubbleArg = cancelableArg = null; } }; /*Documentノードに直接結びつける @@ -303,6 +304,7 @@ } evt.type = eventType; evt.timeStamp = +(new Date()); + eventType = null; return evt; }; From svnnotify @ sourceforge.jp Sat Sep 3 21:19:04 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sat, 03 Sep 2011 21:19:04 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTE4XSAgU1ZHRWxlbWVu?= =?utf-8?b?dOOBruWkieaVsOOBqGlm5paH44Gu5pW055CG44KS44GX44Gm44CB6Lu96YeP?= =?utf-8?b?5YyW?= Message-ID: <1315052344.388694.3248.nullmailer@users.sourceforge.jp> Revision: 2918 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2918 Author: dhrname Date: 2011-09-03 21:19:04 +0900 (Sat, 03 Sep 2011) Log Message: ----------- SVGElementの変数とif文の整理をして、軽量化 Modified Paths: -------------- branches/08x/085/org/w3c/dom/svg.js Modified: branches/08x/085/org/w3c/dom/svg.js =================================================================== --- branches/08x/085/org/w3c/dom/svg.js 2011-09-03 11:30:28 UTC (rev 2917) +++ branches/08x/085/org/w3c/dom/svg.js 2011-09-03 12:19:04 UTC (rev 2918) @@ -256,52 +256,47 @@ tar.addEventListener(v, document._s, false); } else if (evt.relatedNode.nodeName === "xml:base") { //xml:base属性ならば tar.xmlbase = evt.newValue; - } else if (!!tar[name]) { + } else if (!!tar[name] && (tar[name] instanceof SVGAnimatedLength)) { var tea = tar[name], - tod = tar.ownerDocument.documentElement, - tvw = tod.viewport.width, - tvh = tod.viewport.height, - n, - type, - _parseFloat, - s; - if (tea instanceof SVGAnimatedLength) { - n = evt.newValue.match(tar._NaNReg); - type = /*SVGLength.SVG_LENGTHTYPE_NUMBER*/ 1; - _parseFloat = parseFloat; - if (!!n) { - n = n[0]; + tod = tar.ownerDocument.documentElement, + tvw = tod.viewport.width, + tvh = tod.viewport.height, + s, + n = evt.newValue.match(tar._NaNReg), + type = /*SVGLength.SVG_LENGTHTYPE_NUMBER*/ 1, + _parseFloat = parseFloat; + if (!!n) { + n = n[0]; + } + if (n === "%") { + if (tar._x1width[name]) { + tea.baseVal._percent = tvw * 0.01; + } else if (tar._y1height[name]) { + tea.baseVal._percent = tvh * 0.01; + } else { + tea.baseVal._percent = Math.sqrt((tvw*tvw + tvh*tvh) / 2) * 0.01; } - if (n === "%") { - if (tar._x1width[name]) { - tea.baseVal._percent = tvw * 0.01; - } else if (tar._y1height[name]) { - tea.baseVal._percent = tvh * 0.01; - } else { - tea.baseVal._percent = Math.sqrt((tvw*tvw + tvh*tvh) / 2) * 0.01; - } - type = /*SVGLength.SVG_LENGTHTYPE_PERCENTAGE*/ 2; - } else if (n === "em") { - type = /*SVGLength.SVG_LENGTHTYPE_EMS*/ 3; - } else if (n === "ex") { - type = /*SVGLength.SVG_LENGTHTYPE_EXS*/ 4; - } else if (n === "px") { - type = /*SVGLength.SVG_LENGTHTYPE_PX*/ 5; - } else if (n === "cm") { - type = /*SVGLength.SVG_LENGTHTYPE_CM*/ 6; - } else if (n === "mm") { - type = /*SVGLength.SVG_LENGTHTYPE_MM*/ 7; - } else if (n === "in") { - type = /*SVGLength.SVG_LENGTHTYPE_IN*/ 8; - } else if (n === "pt") { - type = /*SVGLength.SVG_LENGTHTYPE_PT*/ 9; - } else if (n === "pc") { - type = /*SVGLength.SVG_LENGTHTYPE_PC*/ 10; - } - s = _parseFloat(evt.newValue); - s = isNaN(s) ? 0 : s; - tea.baseVal.newValueSpecifiedUnits(type, s); + type = /*SVGLength.SVG_LENGTHTYPE_PERCENTAGE*/ 2; + } else if (n === "em") { + type = /*SVGLength.SVG_LENGTHTYPE_EMS*/ 3; + } else if (n === "ex") { + type = /*SVGLength.SVG_LENGTHTYPE_EXS*/ 4; + } else if (n === "px") { + type = /*SVGLength.SVG_LENGTHTYPE_PX*/ 5; + } else if (n === "cm") { + type = /*SVGLength.SVG_LENGTHTYPE_CM*/ 6; + } else if (n === "mm") { + type = /*SVGLength.SVG_LENGTHTYPE_MM*/ 7; + } else if (n === "in") { + type = /*SVGLength.SVG_LENGTHTYPE_IN*/ 8; + } else if (n === "pt") { + type = /*SVGLength.SVG_LENGTHTYPE_PT*/ 9; + } else if (n === "pc") { + type = /*SVGLength.SVG_LENGTHTYPE_PC*/ 10; } + s = _parseFloat(evt.newValue); + s = isNaN(s) ? 0 : s; + tea.baseVal.newValueSpecifiedUnits(type, s); tea = tod = tvw = tvh = n = type = _parseFloat = s = null; } evt = _parseFloat = name = tar = null; From svnnotify @ sourceforge.jp Sun Sep 4 20:21:41 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 04 Sep 2011 20:21:41 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTE5XSAg44OJ44Kt44Ol?= =?utf-8?b?44Oh44Oz44OI44Gu6ZqO5bGk44Ko44Op44O844GM44GC44Gj44Gf44Gf44KB?= =?utf-8?b?44CBY3JlYXRlRG9jdW1lbnTjg6Hjgr3jg4Pjg4njgahzdmfjg6Ljgrjjg6U=?= =?utf-8?b?44O844Or44GuX2Nh6Zai5pWw44KS5L+u5q2j44GX44Gf44CC44Gd44KM44Gr?= =?utf-8?b?44Go44KC44Gq44GE44CBSUU244Gu44Ko44Op44O844KC5L+u5q2j?= Message-ID: <1315135301.749317.7791.nullmailer@users.sourceforge.jp> Revision: 2919 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2919 Author: dhrname Date: 2011-09-04 20:21:41 +0900 (Sun, 04 Sep 2011) Log Message: ----------- ドキュメントの階層エラーがあったため、createDocumentメソッドとsvgモジュールの_ca関数を修正した。それにともない、IE6のエラーも修正 Modified Paths: -------------- branches/08x/085/org/w3c/core.js branches/08x/085/org/w3c/dom/svg.js Modified: branches/08x/085/org/w3c/core.js =================================================================== --- branches/08x/085/org/w3c/core.js 2011-09-03 12:19:04 UTC (rev 2918) +++ branches/08x/085/org/w3c/core.js 2011-09-04 11:21:41 UTC (rev 2919) @@ -191,6 +191,7 @@ var s; if (ns) { s = new (DOMImplementation[ns].Document); + this._doc_ && (s._document_ = this._doc_); //_document_プロパティはcreateElementNSメソッドやradialGradient要素やNAIBU._setPaintなどで使う } else { s = new Document(); } Modified: branches/08x/085/org/w3c/dom/svg.js =================================================================== --- branches/08x/085/org/w3c/dom/svg.js 2011-09-03 12:19:04 UTC (rev 2918) +++ branches/08x/085/org/w3c/dom/svg.js 2011-09-04 11:21:41 UTC (rev 2919) @@ -1726,6 +1726,7 @@ + "v\\:shape{width:100%;height:100%;" +vmlUrl; st = vmlUrl = null; } + DOMImplementation._doc_ = _doc; //_doc_プロパティはcreateDocumentメソッドで使う var str = this.xmlhttp.responseText, objei = this._tar, s = DOMImplementation.createDocument("http://www.w3.org/2000/svg", "svg"), @@ -1747,7 +1748,6 @@ if (ifcw) { _doc.body.style.backgroundColor = objei.parentNode.currentStyle.backgroundColor; } - s._document_ = _doc; //_document_プロパティはradialGradient要素やNAIBU._setPaintなどで使う ndoc.async = false; /*下記のプロパティについては、Microsoftのサイトを参照 *ResolveExternals Property [Second-level DOM] From svnnotify @ sourceforge.jp Mon Sep 5 21:49:32 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 05 Sep 2011 21:49:32 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTIwXSAwLiA4NGJldGE=?= =?utf-8?b?44GuSUU244Gr44GK44GR44KL44OQ44Kw44Gu5L+u5q2j?= Message-ID: <1315226972.629095.25821.nullmailer@users.sourceforge.jp> Revision: 2920 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2920 Author: dhrname Date: 2011-09-05 21:49:32 +0900 (Mon, 05 Sep 2011) Log Message: ----------- 0.84betaのIE6におけるバグの修正 Modified Paths: -------------- branches/08x/org/w3c/core.js branches/08x/org/w3c/dom/svg.js Property Changed: ---------------- branches/08x/org/w3c/core.js branches/08x/org/w3c/dom/svg.js Modified: branches/08x/org/w3c/core.js =================================================================== --- branches/08x/org/w3c/core.js 2011-09-04 11:21:41 UTC (rev 2919) +++ branches/08x/org/w3c/core.js 2011-09-05 12:49:32 UTC (rev 2920) @@ -191,6 +191,7 @@ var s; if (ns) { s = new (DOMImplementation[ns].Document); + this._doc_ && (s._document_ = this._doc_); //_document_プロパティはcreateElementNSメソッドやradialGradient要素やNAIBU._setPaintなどで使う } else { s = new Document(); } Property changes on: branches/08x/org/w3c/core.js ___________________________________________________________________ Modified: svn:mergeinfo - /branches/06x/061/org/w3c/core.js:1864-2067 /branches/06x/062/org/w3c/core.js:2071-2106 /branches/06x/063/org/w3c/core.js:2110-2146 /branches/06x/064/org/w3c/core.js:2149-2177 /branches/06x/065/org/w3c/core.js:2179-2209 /branches/06x/066/org/w3c/core.js:2211-2244 /branches/06x/067/org/w3c/core.js:2257-2282 /branches/06x/068/org/w3c/core.js:2284-2314 /branches/06x/069/org/w3c/core.js:2317-2352 /branches/06x/org/w3c/core.js:1861-2353 /branches/07x/070/org/w3c/core.js:2363-2383 /branches/07x/071/org/w3c/core.js:2385-2433 /branches/07x/072/org/w3c/core.js:2435-2474 /branches/07x/073/org/w3c/core.js:2476-2509 /branches/07x/074/org/w3c/core.js:2511-2556 /branches/07x/075/org/w3c/core.js:2558-2597 /branches/07x/076/org/w3c/core.js:2600-2631,2642 /branches/07x/077/org/w3c/core.js:2635-2677 /branches/07x/078/org/w3c/core.js:2679-2726 /branches/07x/079/org/w3c/core.js:2728-2745 /branches/07x/org/org/w3c/core.js:2643 /branches/07x/org/w3c/core.js:2356-2753 /branches/08x/080/org/w3c/core.js:2758-2785 /branches/08x/081/org/w3c/core.js:2787-2814 /branches/08x/082/org/w3c/core.js:2817-2843 /branches/08x/083/org/w3c/core.js:2845-2872 /branches/08x/084/org/w3c/core.js:2874-2908 /branches/ufltima/core.js:1621-1854 + /branches/06x/061/org/w3c/core.js:1864-2067 /branches/06x/062/org/w3c/core.js:2071-2106 /branches/06x/063/org/w3c/core.js:2110-2146 /branches/06x/064/org/w3c/core.js:2149-2177 /branches/06x/065/org/w3c/core.js:2179-2209 /branches/06x/066/org/w3c/core.js:2211-2244 /branches/06x/067/org/w3c/core.js:2257-2282 /branches/06x/068/org/w3c/core.js:2284-2314 /branches/06x/069/org/w3c/core.js:2317-2352 /branches/06x/org/w3c/core.js:1861-2353 /branches/07x/070/org/w3c/core.js:2363-2383 /branches/07x/071/org/w3c/core.js:2385-2433 /branches/07x/072/org/w3c/core.js:2435-2474 /branches/07x/073/org/w3c/core.js:2476-2509 /branches/07x/074/org/w3c/core.js:2511-2556 /branches/07x/075/org/w3c/core.js:2558-2597 /branches/07x/076/org/w3c/core.js:2600-2631,2642 /branches/07x/077/org/w3c/core.js:2635-2677 /branches/07x/078/org/w3c/core.js:2679-2726 /branches/07x/079/org/w3c/core.js:2728-2745 /branches/07x/org/org/w3c/core.js:2643 /branches/07x/org/w3c/core.js:2356-2753 /branches/08x/080/org/w3c/core.js:2758-2785 /branches/08x/081/org/w3c/core.js:2787-2814 /branches/08x/082/org/w3c/core.js:2817-2843 /branches/08x/083/org/w3c/core.js:2845-2872 /branches/08x/084/org/w3c/core.js:2874-2908 /branches/08x/085/org/w3c/core.js:2919 /branches/ufltima/core.js:1621-1854 Modified: branches/08x/org/w3c/dom/svg.js =================================================================== --- branches/08x/org/w3c/dom/svg.js 2011-09-04 11:21:41 UTC (rev 2919) +++ branches/08x/org/w3c/dom/svg.js 2011-09-05 12:49:32 UTC (rev 2920) @@ -1731,6 +1731,7 @@ + "v\\:shape{width:100%;height:100%;" +vmlUrl; st = vmlUrl = null; } + DOMImplementation._doc_ = _doc; //_doc_プロパティはcreateDocumentメソッドで使う var str = this.xmlhttp.responseText, objei = this._tar, s = DOMImplementation.createDocument("http://www.w3.org/2000/svg", "svg"), @@ -1752,7 +1753,6 @@ if (ifcw) { _doc.body.style.backgroundColor = objei.parentNode.currentStyle.backgroundColor; } - s._document_ = _doc; //_document_プロパティはradialGradient要素やNAIBU._setPaintなどで使う ndoc.async = false; /*下記のプロパティについては、Microsoftのサイトを参照 *ResolveExternals Property [Second-level DOM] Property changes on: branches/08x/org/w3c/dom/svg.js ___________________________________________________________________ Modified: svn:mergeinfo - /branches/06x/061/org/w3c/dom/svg.js:1864-2067 /branches/06x/062/org/w3c/dom/svg.js:2071-2106 /branches/06x/063/org/w3c/dom/svg.js:2110-2146 /branches/06x/064/org/w3c/dom/svg.js:2149-2177 /branches/06x/065/org/w3c/dom/svg.js:2179-2209 /branches/06x/066/org/w3c/dom/svg.js:2211-2239 /branches/06x/067/org/w3c/dom/svg.js:2257-2282 /branches/06x/068/org/w3c/dom/svg.js:2284-2314 /branches/06x/069/org/w3c/dom/svg.js:2317-2352 /branches/06x/org/w3c/dom/svg.js:1861-2353 /branches/07x/070/org/w3c/dom/svg.js:2363-2383 /branches/07x/071/org/w3c/dom/svg.js:2385-2433 /branches/07x/072/org/w3c/dom/svg.js:2435-2474 /branches/07x/073/org/w3c/dom/svg.js:2476-2509 /branches/07x/074/org/w3c/dom/svg.js:2511-2556 /branches/07x/075/org/w3c/dom/svg.js:2558-2597 /branches/07x/076/org/w3c/dom/svg.js:2600-2631,2642 /branches/07x/077/org/w3c/dom/svg.js:2635-2677 /branches/07x/078/org/w3c/dom/svg.js:2679-2726 /branches/07x/079/org/w3c/dom/svg.js:2728-2746 /branches/07x/org/org/w3c/dom/svg.js:2643 /branches/07x/org/w3c/dom/svg.js:2356-2753 /branches/08x/080/org/w3c/dom/svg.js:2758-2785 /branches/08x/081/org/w3c/dom/svg.js:2787-2814 /branches/08x/082/org/w3c/dom/svg.js:2817-2843 /branches/08x/083/org/w3c/dom/svg.js:2845-2872 /branches/08x/084/org/w3c/dom/svg.js:2874-2908 /branches/ufltima/dom/svg.js:1621-1856 + /branches/06x/061/org/w3c/dom/svg.js:1864-2067 /branches/06x/062/org/w3c/dom/svg.js:2071-2106 /branches/06x/063/org/w3c/dom/svg.js:2110-2146 /branches/06x/064/org/w3c/dom/svg.js:2149-2177 /branches/06x/065/org/w3c/dom/svg.js:2179-2209 /branches/06x/066/org/w3c/dom/svg.js:2211-2239 /branches/06x/067/org/w3c/dom/svg.js:2257-2282 /branches/06x/068/org/w3c/dom/svg.js:2284-2314 /branches/06x/069/org/w3c/dom/svg.js:2317-2352 /branches/06x/org/w3c/dom/svg.js:1861-2353 /branches/07x/070/org/w3c/dom/svg.js:2363-2383 /branches/07x/071/org/w3c/dom/svg.js:2385-2433 /branches/07x/072/org/w3c/dom/svg.js:2435-2474 /branches/07x/073/org/w3c/dom/svg.js:2476-2509 /branches/07x/074/org/w3c/dom/svg.js:2511-2556 /branches/07x/075/org/w3c/dom/svg.js:2558-2597 /branches/07x/076/org/w3c/dom/svg.js:2600-2631,2642 /branches/07x/077/org/w3c/dom/svg.js:2635-2677 /branches/07x/078/org/w3c/dom/svg.js:2679-2726 /branches/07x/079/org/w3c/dom/svg.js:2728-2746 /branches/07x/org/org/w3c/dom/svg.js:2643 /branches/07x/org/w3c/dom/svg.js:2356-2753 /branches/08x/080/org/w3c/dom/svg.js:2758-2785 /branches/08x/081/org/w3c/dom/svg.js:2787-2814 /branches/08x/082/org/w3c/dom/svg.js:2817-2843 /branches/08x/083/org/w3c/dom/svg.js:2845-2872 /branches/08x/084/org/w3c/dom/svg.js:2874-2908 /branches/08x/085/org/w3c/dom/svg.js:2919 /branches/ufltima/dom/svg.js:1621-1856 From svnnotify @ sourceforge.jp Mon Sep 5 22:13:17 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 05 Sep 2011 22:13:17 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTIxXSAwLjg0YmV0YSBm?= =?utf-8?q?ixed?= Message-ID: <1315228397.037572.25190.nullmailer@users.sourceforge.jp> Revision: 2921 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2921 Author: dhrname Date: 2011-09-05 22:13:16 +0900 (Mon, 05 Sep 2011) Log Message: ----------- 0.84beta fixed Modified Paths: -------------- branches/08x/sie.js Modified: branches/08x/sie.js =================================================================== --- branches/08x/sie.js 2011-09-05 12:49:32 UTC (rev 2920) +++ branches/08x/sie.js 2011-09-05 13:13:16 UTC (rev 2921) @@ -191,6 +191,7 @@ var s; if (ns) { s = new (DOMImplementation[ns].Document); + this._doc_ && (s._document_ = this._doc_); //_document_プロパティはcreateElementNSメソッドやradialGradient要素やNAIBU._setPaintなどで使う } else { s = new Document(); } @@ -4033,6 +4034,7 @@ + "v\\:shape{width:100%;height:100%;" +vmlUrl; st = vmlUrl = null; } + DOMImplementation._doc_ = _doc; //_doc_プロパティはcreateDocumentメソッドで使う var str = this.xmlhttp.responseText, objei = this._tar, s = DOMImplementation.createDocument("http://www.w3.org/2000/svg", "svg"), @@ -4054,7 +4056,6 @@ if (ifcw) { _doc.body.style.backgroundColor = objei.parentNode.currentStyle.backgroundColor; } - s._document_ = _doc; //_document_プロパティはradialGradient要素やNAIBU._setPaintなどで使う ndoc.async = false; /*下記のプロパティについては、Microsoftのサイトを参照 *ResolveExternals Property [Second-level DOM] From svnnotify @ sourceforge.jp Mon Sep 5 22:16:46 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 05 Sep 2011 22:16:46 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTIyXSAgSUU244Gu44Ko?= =?utf-8?b?44Op44O85L+u5q2j44KS5Y+W44KK6L6844KT44Gg?= Message-ID: <1315228606.127878.29022.nullmailer@users.sourceforge.jp> Revision: 2922 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2922 Author: dhrname Date: 2011-09-05 22:16:46 +0900 (Mon, 05 Sep 2011) Log Message: ----------- IE6のエラー修正を取り込んだ Modified Paths: -------------- trunk/sie.js Property Changed: ---------------- trunk/sie.js Modified: trunk/sie.js =================================================================== --- trunk/sie.js 2011-09-05 13:13:16 UTC (rev 2921) +++ trunk/sie.js 2011-09-05 13:16:46 UTC (rev 2922) @@ -191,6 +191,7 @@ var s; if (ns) { s = new (DOMImplementation[ns].Document); + this._doc_ && (s._document_ = this._doc_); //_document_プロパティはcreateElementNSメソッドやradialGradient要素やNAIBU._setPaintなどで使う } else { s = new Document(); } @@ -4033,6 +4034,7 @@ + "v\\:shape{width:100%;height:100%;" +vmlUrl; st = vmlUrl = null; } + DOMImplementation._doc_ = _doc; //_doc_プロパティはcreateDocumentメソッドで使う var str = this.xmlhttp.responseText, objei = this._tar, s = DOMImplementation.createDocument("http://www.w3.org/2000/svg", "svg"), @@ -4054,7 +4056,6 @@ if (ifcw) { _doc.body.style.backgroundColor = objei.parentNode.currentStyle.backgroundColor; } - s._document_ = _doc; //_document_プロパティはradialGradient要素やNAIBU._setPaintなどで使う ndoc.async = false; /*下記のプロパティについては、Microsoftのサイトを参照 *ResolveExternals Property [Second-level DOM] Property changes on: trunk/sie.js ___________________________________________________________________ Modified: svn:mergeinfo - /branches/04x/040/sie.js:812-829 /branches/04x/041/sie.js:891-923 /branches/04x/042/sie.js:927-967 /branches/04x/043/sie.js:969-1013 /branches/04x/044/sie.js:1015-1067 /branches/04x/045/sie.js:1069-1078 /branches/04x/046/sie.js:1080-1129 /branches/04x/047/sie.js:1131-1164 /branches/04x/048/sie.js:1166-1180 /branches/04x/sie.js:830-1181 /branches/05x/050/sie.js:1183-1201 /branches/05x/051/sie.js:1207-1323 /branches/05x/052/sie.js:1325-1352 /branches/05x/053/sie.js:1354-1400 /branches/05x/054/sie.js:1403-1422 /branches/05x/055/sie.js:1424-1454 /branches/05x/056/sie.js:1456-1491 /branches/05x/057/sie.js:1496-1523 /branches/05x/058/sie.js:1526-1590 /branches/05x/sie.js:1183-1594 /branches/06x/060/sie.js:1603-1850 /branches/06x/sie.js:1599-2355 /branches/07x/sie.js:2357-2748 /branches/08x/sie.js:2750-2912 + /branches/04x/040/sie.js:812-829 /branches/04x/041/sie.js:891-923 /branches/04x/042/sie.js:927-967 /branches/04x/043/sie.js:969-1013 /branches/04x/044/sie.js:1015-1067 /branches/04x/045/sie.js:1069-1078 /branches/04x/046/sie.js:1080-1129 /branches/04x/047/sie.js:1131-1164 /branches/04x/048/sie.js:1166-1180 /branches/04x/sie.js:830-1181 /branches/05x/050/sie.js:1183-1201 /branches/05x/051/sie.js:1207-1323 /branches/05x/052/sie.js:1325-1352 /branches/05x/053/sie.js:1354-1400 /branches/05x/054/sie.js:1403-1422 /branches/05x/055/sie.js:1424-1454 /branches/05x/056/sie.js:1456-1491 /branches/05x/057/sie.js:1496-1523 /branches/05x/058/sie.js:1526-1590 /branches/05x/sie.js:1183-1594 /branches/06x/060/sie.js:1603-1850 /branches/06x/sie.js:1599-2355 /branches/07x/sie.js:2357-2748 /branches/08x/sie.js:2750-2912,2921 From svnnotify @ sourceforge.jp Mon Sep 5 22:26:37 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 05 Sep 2011 22:26:37 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTIzXSAwLiA4NOatow==?= =?utf-8?b?6KaP54mI44Gu5aSJ5pu05bGl5q2044KS6L+95Yqg?= Message-ID: <1315229197.264430.8522.nullmailer@users.sourceforge.jp> Revision: 2923 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2923 Author: dhrname Date: 2011-09-05 22:26:37 +0900 (Mon, 05 Sep 2011) Log Message: ----------- 0.84正規版の変更履歴を追加 Modified Paths: -------------- trunk/ChangeLog.txt Modified: trunk/ChangeLog.txt =================================================================== --- trunk/ChangeLog.txt 2011-09-05 13:16:46 UTC (rev 2922) +++ trunk/ChangeLog.txt 2011-09-05 13:26:37 UTC (rev 2923) @@ -1,4 +1,4 @@ -?2011-9-2 version 0.84beta +?2011-9-7 version 0.84 version 0.83からの変更点 1, div要素のmarginプロパティ指定地に関するミスを修正 2, SVGURIReferenceインターフェースと、関連する要素を改良して、SVGLoadイベントが2度起きるバグを修正 @@ -13,8 +13,8 @@ 11, EventのpreventDefaultメソッドが正常に作動しないバグを修正 12, SVGAElementの最適化 13, a要素とg要素のDOMの処理を一つに統一させた +14, IE6上で発生するcreateDocumentメソッドに関するエラーを修正 (beta fixed) - 2011-8-22 version 0.83 version 0.82からの変更点 1, iframe要素で代用ができるので、画像のクリップ処理を関数_caから削除した From svnnotify @ sourceforge.jp Wed Sep 7 20:49:08 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Wed, 07 Sep 2011 20:49:08 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTI1XQ==?= Message-ID: <1315396148.671786.17196.nullmailer@users.sourceforge.jp> Revision: 2925 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2925 Author: dhrname Date: 2011-09-07 20:49:08 +0900 (Wed, 07 Sep 2011) Log Message: ----------- Added Paths: ----------- tags/084/ Property changes on: tags/084 ___________________________________________________________________ Added: bugtraq:number + true From svnnotify @ sourceforge.jp Wed Sep 7 21:53:01 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Wed, 07 Sep 2011 21:53:01 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTI4XSAg5ryi5a2X44Gr?= =?utf-8?b?6ZaT6YGV44GE44GM44GC44Gj44Gf44Gu44Gn5L+u5q2j?= Message-ID: <1315399981.844279.28841.nullmailer@users.sourceforge.jp> Revision: 2928 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2928 Author: dhrname Date: 2011-09-07 21:53:01 +0900 (Wed, 07 Sep 2011) Log Message: ----------- 漢字に間違いがあったので修正 Modified Paths: -------------- trunk/ChangeLog.txt Modified: trunk/ChangeLog.txt =================================================================== --- trunk/ChangeLog.txt 2011-09-07 11:49:52 UTC (rev 2927) +++ trunk/ChangeLog.txt 2011-09-07 12:53:01 UTC (rev 2928) @@ -1,6 +1,6 @@ ?2011-9-7 version 0.84 version 0.83からの変更点 -1, div要素のmarginプロパティ指定地に関するミスを修正 +1, div要素のmarginプロパティ指定値に関するミスを修正 2, SVGURIReferenceインターフェースと、関連する要素を改良して、SVGLoadイベントが2度起きるバグを修正 3, SVGLinearGradientElementインターフェースの改良と、SVGURIReferenceインターフェースの修正 4, svg要素のwidthとheight属性がフレーム枠よりも小さい場合は、画像の切り取りが必要になるため、0.83で外したクリップ処理を復活させた From svnnotify @ sourceforge.jp Wed Sep 7 22:58:41 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Wed, 07 Sep 2011 22:58:41 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTI5XQ==?= Message-ID: <1315403921.857387.11447.nullmailer@users.sourceforge.jp> Revision: 2929 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2929 Author: dhrname Date: 2011-09-07 22:58:41 +0900 (Wed, 07 Sep 2011) Log Message: ----------- Modified Paths: -------------- trunk/index.html Modified: trunk/index.html =================================================================== --- trunk/index.html 2011-09-07 12:53:01 UTC (rev 2928) +++ trunk/index.html 2011-09-07 13:58:41 UTC (rev 2929) @@ -19,10 +19,10 @@

SIE - SVG形式の画像を表示できるオープンソースのJavaScriptライブラリ

もっと自由で軽量なスタイルに

無料ダウンロード

-

sie-083.zip (ZIP形式, 435 KB)

+

sie-084.zip (ZIP形式, 436 KB)

あらかじめ、圧縮ファイル(ZIP形式)をダウンロードしてから、解凍してください。sie.jsを手に入れることができます。

動作環境

-

Internet Explorer6.0+、Mozilla Firefox3.0+、Opera10.0+、Safari3.0+、Google Chrome3.0+

+

Internet Explorer6.0+、Firefox4+、Opera10.0+、Safari3.0+、Google Chrome3.0+

SIEとは

SIEとは、標準的な2Dベクトル画像形式であるスケーラブル ベクタ グラフィックス(以下、SVG)をブラウザで表示するためのソフトです。JavaScript言語で記述されています。プラグインは不必要。例えば、古いインターネットエクスプローラーやその他のブラウザで、SVGを表示するのに便利です。

From svnnotify @ sourceforge.jp Wed Sep 7 22:59:22 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Wed, 07 Sep 2011 22:59:22 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTMwXSAgaW1hZ2XopoE=?= =?utf-8?b?57Sg44Gu55S75YOP6Kqt44G/6L6844G/44KS6auY6YCf5YyW?= Message-ID: <1315403962.920113.11613.nullmailer@users.sourceforge.jp> Revision: 2930 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2930 Author: dhrname Date: 2011-09-07 22:59:22 +0900 (Wed, 07 Sep 2011) Log Message: ----------- image要素の画像読み込みを高速化 Modified Paths: -------------- branches/08x/085/org/w3c/dom/svg.js Modified: branches/08x/085/org/w3c/dom/svg.js =================================================================== --- branches/08x/085/org/w3c/dom/svg.js 2011-09-07 13:58:41 UTC (rev 2929) +++ branches/08x/085/org/w3c/dom/svg.js 2011-09-07 13:59:22 UTC (rev 2930) @@ -1039,65 +1039,65 @@ tar._tar.src = uri; tar = xmlhttp = null; } else if ((uri.indexOf("http:") > -1) || (uri.indexOf(".") === 0)){ - if (tar.localName === "image") { + if ((tar.localName === "image") && (uri.indexOf(".svg") === -1)) { tar._tar.src = uri; } else { /*ここの_svgload_limitedは、リンクを読み込んだ後でSVGLoadイベントを実行させるという遅延処理で必要*/ tar.ownerDocument.documentElement._svgload_limited++; - } - xmlhttp.open("GET", uri, false); - xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest"); - xmlhttp.onreadystatechange = function() { - if ((xmlhttp.readyState === 4) && (xmlhttp.status === 200)) { - var type = xmlhttp.getResponseHeader('Content-Type') || "text", - doc, str, ele, ev; - if ((type.indexOf("text") > -1) || (type.indexOf("xml") > -1) || (type.indexOf("script") > -1)) { //ファイルがtext形式である場合 - /*responseXMLを使うと、時々、空のデータを返すことがあるため(原因は不明)、 - *ここでは、responseTextを用いる - */ - /*script要素とstyle要素は、 - *_textプロパティに読み込んだテキストを格納しておく - *それら以外は、_instanceプロパティにDOMツリーを格納しておく - */ - if (tar.localName !== "script" && tar.localName !== "style") { - doc = new ActiveXObject("MSXML2.DomDocument"); - str = xmlhttp.responseText.replace(/!DOCTYPE/,"!--").replace(/(dtd">|\]>)/,"-->"); - NAIBU.doc.async = false; - NAIBU.doc.validateOnParse = false; - NAIBU.doc.resolveExternals = false; - NAIBU.doc.preserveWhiteSpace = false; - doc.loadXML(str); - ele = doc.documentElement; - tar._instance = tar.ownerDocument.importNode(ele, true); - if (id) { - tar._instance = tar._instance.ownerDocument.getElementById(id); + xmlhttp.open("GET", uri, false); + xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest"); + xmlhttp.onreadystatechange = function() { + if ((xmlhttp.readyState === 4) && (xmlhttp.status === 200)) { + var type = xmlhttp.getResponseHeader('Content-Type') || "text", + doc, str, ele, ev; + if ((type.indexOf("text") > -1) || (type.indexOf("xml") > -1) || (type.indexOf("script") > -1)) { //ファイルがtext形式である場合 + /*responseXMLを使うと、時々、空のデータを返すことがあるため(原因は不明)、 + *ここでは、responseTextを用いる + */ + /*script要素とstyle要素は、 + *_textプロパティに読み込んだテキストを格納しておく + *それら以外は、_instanceプロパティにDOMツリーを格納しておく + */ + if (tar.localName !== "script" && tar.localName !== "style") { + doc = new ActiveXObject("MSXML2.DomDocument"); + str = xmlhttp.responseText.replace(/!DOCTYPE/,"!--").replace(/(dtd">|\]>)/,"-->"); + NAIBU.doc.async = false; + NAIBU.doc.validateOnParse = false; + NAIBU.doc.resolveExternals = false; + NAIBU.doc.preserveWhiteSpace = false; + doc.loadXML(str); + ele = doc.documentElement; + tar._instance = tar.ownerDocument.importNode(ele, true); + if (id) { + tar._instance = tar._instance.ownerDocument.getElementById(id); + } + } else { + tar._text = xmlhttp.responseText; } - } else { - tar._text = xmlhttp.responseText; + } else if (!!tar._tar) { + tar._tar.src = uri; } - } else if (!!tar._tar) { - tar._tar.src = uri; - } - /*S_LoadイベントとはSIE独自のイベント。 - *XLink言語によって、リンク先のコンテンツが読み込まれた時点で発火する - */ - ev = tar.ownerDocument.createEvent("SVGEvents"); - ev.initEvent("S_Load", false, false); - tar.dispatchEvent(ev); - tar.ownerDocument.documentElement._svgload_limited--; - /*すべてのリンクが読み込みを終了した場合、SVGLoadイベントを発火*/ - if (tar.ownerDocument.documentElement._svgload_limited < 0) { + /*S_LoadイベントとはSIE独自のイベント。 + *XLink言語によって、リンク先のコンテンツが読み込まれた時点で発火する + */ ev = tar.ownerDocument.createEvent("SVGEvents"); - ev.initEvent("SVGLoad", false, false); - tar.ownerDocument.documentElement.dispatchEvent(ev); + ev.initEvent("S_Load", false, false); + tar.dispatchEvent(ev); + tar.ownerDocument.documentElement._svgload_limited--; + /*すべてのリンクが読み込みを終了した場合、SVGLoadイベントを発火*/ + if (tar.ownerDocument.documentElement._svgload_limited < 0) { + ev = tar.ownerDocument.createEvent("SVGEvents"); + ev.initEvent("SVGLoad", false, false); + tar.ownerDocument.documentElement.dispatchEvent(ev); + } + tar = type = doc = str = ev = null; + /*IEのメモリリーク対策として、空関数を入力*/ + xmlhttp.onreadystatechange = NAIBU.emptyFunction; + xmlhttp = null; } - tar = type = doc = str = ev = null; - /*IEのメモリリーク対策として、空関数を入力*/ - xmlhttp.onreadystatechange = NAIBU.emptyFunction; - xmlhttp = null; - } - }; - xmlhttp.send(null); + }; + xmlhttp.send(null); + } } } tar.ownerDocument.documentElement._svgload_limited--; From svnnotify @ sourceforge.jp Sat Sep 10 23:43:49 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sat, 10 Sep 2011 23:43:49 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTMxXSAxLCAgU1ZHVGV4?= =?utf-8?b?dEVsZW1lbnTjga7lpInmlbDjgpLmlbTnkIY=?= Message-ID: <1315665829.280313.1656.nullmailer@users.sourceforge.jp> Revision: 2931 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2931 Author: dhrname Date: 2011-09-10 23:43:48 +0900 (Sat, 10 Sep 2011) Log Message: ----------- 1, SVGTextElementの変数を整理 2, SVGTextElementを改良して、text要素のxとy属性が一つの数値からなるリストの場合のみ、字詰め処理をブラウザに任せるようにした Modified Paths: -------------- branches/08x/085/org/w3c/dom/svg.js Modified: branches/08x/085/org/w3c/dom/svg.js =================================================================== --- branches/08x/085/org/w3c/dom/svg.js 2011-09-07 13:59:22 UTC (rev 2930) +++ branches/08x/085/org/w3c/dom/svg.js 2011-09-10 14:43:48 UTC (rev 2931) @@ -4194,14 +4194,18 @@ } tnext = tpar = isLast = null; tar.addEventListener("DOMNodeInsertedIntoDocument", function(evt) { - var tar = evt.target, ti = tar.firstChild, ttp = tar._tar; + var tar = evt.target, + ti = tar.firstChild, + ttp = tar._tar, + style = tar.ownerDocument.defaultView.getComputedStyle(tar, null), + n = parseFloat(style.getPropertyValue("font-size")) * Math.sqrt(Math.abs(tar.getScreenCTM()._determinant())), + tod = tar.ownerDocument.documentElement, + ttpc = ttp, //ttpcはttpのキャッシュ + tlen = tar.getComputedTextLength(), + anchor = style.getPropertyValue("text-anchor"); ttp.style.cssText = tar.style.cssText; - var style = tar.ownerDocument.defaultView.getComputedStyle(tar, null); - var n = parseFloat(style.getPropertyValue("font-size")) * Math.sqrt(Math.abs(tar.getScreenCTM()._determinant())); ttp.style.fontSize = n + "px"; ttp.style.fontFamily = style.getPropertyValue("font-family"); - var tod = tar.ownerDocument.documentElement, ttpc = ttp; //ttpcはttpのキャッシュ - var tlen = tar.getComputedTextLength(), anchor = style.getPropertyValue("text-anchor"); /*ここでの変数jは前回ノードまでの総文字数*/ for (var i=0, j=0, tli=tar.getNumberOfChars();i Revision: 2932 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2932 Author: dhrname Date: 2011-09-10 23:49:51 +0900 (Sat, 10 Sep 2011) Log Message: ----------- SVGTextElementインターフェースの最適化 Modified Paths: -------------- branches/08x/085/org/w3c/dom/svg.js Modified: branches/08x/085/org/w3c/dom/svg.js =================================================================== --- branches/08x/085/org/w3c/dom/svg.js 2011-09-10 14:43:48 UTC (rev 2931) +++ branches/08x/085/org/w3c/dom/svg.js 2011-09-10 14:49:51 UTC (rev 2932) @@ -4202,16 +4202,18 @@ tod = tar.ownerDocument.documentElement, ttpc = ttp, //ttpcはttpのキャッシュ tlen = tar.getComputedTextLength(), - anchor = style.getPropertyValue("text-anchor"); - ttp.style.cssText = tar.style.cssText; - ttp.style.fontSize = n + "px"; - ttp.style.fontFamily = style.getPropertyValue("font-family"); + anchor = style.getPropertyValue("text-anchor"), + ttps = ttp.style; + ttps.cssText = tar.style.cssText; + ttps.fontSize = n + "px"; + ttps.fontFamily = style.getPropertyValue("font-family"); /*ここでの変数jは前回ノードまでの総文字数*/ for (var i=0, j=0, tli=tar.getNumberOfChars();i j) ? i - j : j - i - var sty = ti._tars[ij].style, p = tar.getStartPositionOfChar(i); + var sty = ti._tars[ij].style, + p = tar.getStartPositionOfChar(i); sty.position = "absolute"; if (tar._isYokogaki) { if (anchor === "middle") { @@ -4300,17 +4302,14 @@ if (!isRect) { var backr = _doc.createElement("v:rect"); var backrs = backr.style; //ずれを修正するためのもの - backrs.width = "1px"; - backrs.height = "1px"; - backrs.left = "0px"; - backrs.top = "0px"; - backr.stroked = "false"; - backr.filled = "false"; + backrs.width = backrs.height = "1px"; + backrs.left = backrs.top = "0px"; + backr.stroked = backr.filled = "false"; ttp.appendChild(backr); } delete tar._cacheMatrix; delete tar._currentStyle; - isRect = evt = tar = style = tpp = ttpc = style = color = cursor = disp = vis = null; + isRect = evt = tar = style = tpp = ttpc = style = color = cursor = disp = vis = ttps = null; }, false); evt = tar = null; },false); From svnnotify @ sourceforge.jp Sat Sep 10 23:57:18 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sat, 10 Sep 2011 23:57:18 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTMzXSAgU1ZHVGV4dEVs?= =?utf-8?b?ZW1lbnTjgavjgrPjg6Hjg7Pjg4jjgpLov73liqA=?= Message-ID: <1315666638.079300.19821.nullmailer@users.sourceforge.jp> Revision: 2933 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2933 Author: dhrname Date: 2011-09-10 23:57:18 +0900 (Sat, 10 Sep 2011) Log Message: ----------- SVGTextElementにコメントを追加 Modified Paths: -------------- branches/08x/085/org/w3c/dom/svg.js Modified: branches/08x/085/org/w3c/dom/svg.js =================================================================== --- branches/08x/085/org/w3c/dom/svg.js 2011-09-10 14:49:51 UTC (rev 2932) +++ branches/08x/085/org/w3c/dom/svg.js 2011-09-10 14:57:18 UTC (rev 2933) @@ -4171,8 +4171,10 @@ if (evt.eventPhase === /*Event.BUBBLING_PHASE*/ 3) { return; //強制終了させる } - var tar = evt.target; - var tnext = tar.nextSibling, tpar = tar.parentNode, isLast = true; + var tar = evt.target, + tnext = tar.nextSibling, + tpar = tar.parentNode, + isLast = true; if (tnext && tnext._tar && tpar._tar && (tnext._tar.parentNode === tpar._tar)) { tpar._tar.insertBefore(tar._tar, tnext._tar); } else if (tnext && !tnext._tar && tpar._tar) { @@ -4285,6 +4287,9 @@ } if ((tar.x.baseVal.numberOfItems === 1) && (tar.y.baseVal.numberOfItems === 1) && tar._isYokogaki && (tar.firstChild.nodeName === "#text")) { + /*xとy属性が一つの値しか取らないとき、字詰めの処理をすべてブラウザに任せておく。 + *以下では、他のdiv要素のテキストをすべて、最初のdiv要素にまとめている + */ var tft = tar.firstChild._tars; for (var i=1, tli=tft.length;i Revision: 2934 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2934 Author: dhrname Date: 2011-09-11 19:50:28 +0900 (Sun, 11 Sep 2011) Log Message: ----------- text要素にtext-decoration属性(プロパティ)、font-weight属性(プロパティ)などを実装 Modified Paths: -------------- branches/08x/085/org/w3c/dom/css.js branches/08x/085/org/w3c/dom/svg.js Modified: branches/08x/085/org/w3c/dom/css.js =================================================================== --- branches/08x/085/org/w3c/dom/css.js 2011-09-10 14:57:18 UTC (rev 2933) +++ branches/08x/085/org/w3c/dom/css.js 2011-09-11 10:50:28 UTC (rev 2934) @@ -372,6 +372,23 @@ var s = this._list[index].cssText.substring(0, this._list[index].cssText.indexOf(":")); } return s; + }, + /*_setCSSTextメソッド SIE独自のメソッド。 + *リストをテキストに変換して、cssTextプロパティに格納しておく。cssTextがsetterである場合は、削除しておくこと。 + */ + _setCSSText : function () { + var tlist = this._list, + list = {}, //SIEの設計上、プロパティが重複してしまう恐れがあるので、重複防止のためのチェックするオブジェクト + ti; + this.length = tlist.length; //setPropertyメソッドを解さないで処理する場合があるため、lengthプロパティを同値にする + for (var i=tlist.length-1;i>=0;--i) { + ti = this.item(i); + if (!list[ti]) { + this.cssText += tlist[i].cssText+ ";"; + list[ti] = 1; + } + } + tlist = list = ti = i = null; } }; Modified: branches/08x/085/org/w3c/dom/svg.js =================================================================== --- branches/08x/085/org/w3c/dom/svg.js 2011-09-10 14:57:18 UTC (rev 2933) +++ branches/08x/085/org/w3c/dom/svg.js 2011-09-11 10:50:28 UTC (rev 2934) @@ -4205,8 +4205,10 @@ ttpc = ttp, //ttpcはttpのキャッシュ tlen = tar.getComputedTextLength(), anchor = style.getPropertyValue("text-anchor"), + tedeco = style.getPropertyValue("text-decoration"), //text-decorationは継承しないので、個々に設定する ttps = ttp.style; - ttps.cssText = tar.style.cssText; + style._setCSSText(); + ttps.cssText = style.cssText; ttps.fontSize = n + "px"; ttps.fontFamily = style.getPropertyValue("font-family"); /*ここでの変数jは前回ノードまでの総文字数*/ @@ -4236,6 +4238,7 @@ sty.height = "0px"; sty.marginTop = tar._isYokogaki ? -n-5+ "px" : "-5px"; sty.lineHeight = n+10+ "px"; + sty.textDecoration = tedeco; ttp.appendChild(ti._tars[ij]); sty = p = null; } @@ -4314,7 +4317,7 @@ } delete tar._cacheMatrix; delete tar._currentStyle; - isRect = evt = tar = style = tpp = ttpc = style = color = cursor = disp = vis = ttps = backr = backrs = null; + isRect = evt = tar = style = tedeco = tpp = ttpc = style = color = cursor = disp = vis = ttps = backr = backrs = null; }, false); evt = tar = null; },false); From svnnotify @ sourceforge.jp Sun Sep 11 20:15:35 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 11 Sep 2011 20:15:35 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTM1XSAg5a6a5pWw44Gu?= =?utf-8?b?6Kit5a6a44KS6KaL55u044GX44Gm6Lu96YeP5YyW?= Message-ID: <1315739735.879335.32614.nullmailer@users.sourceforge.jp> Revision: 2935 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2935 Author: dhrname Date: 2011-09-11 20:15:35 +0900 (Sun, 11 Sep 2011) Log Message: ----------- 定数の設定を見直して軽量化 Modified Paths: -------------- branches/08x/085/org/w3c/core.js branches/08x/085/org/w3c/dom/css.js branches/08x/085/org/w3c/dom/svg.js Modified: branches/08x/085/org/w3c/core.js =================================================================== --- branches/08x/085/org/w3c/core.js 2011-09-11 10:50:28 UTC (rev 2934) +++ branches/08x/085/org/w3c/core.js 2011-09-11 11:15:35 UTC (rev 2935) @@ -132,22 +132,24 @@ ノードを生成した文書以外の(そのノードをサポートしない)異なる文書で,ノードが使用されている。4 */ }; -DOMException.INDEX_SIZE_ERR = 1; -DOMException.DOMSTRING_SIZE_ERR = 2; -DOMException.HIERARCHY_REQUEST_ERR = 3; -DOMException.WRONG_DOCUMENT_ERR = 4; -DOMException.INVALID_CHARACTER_ERR = 5; -DOMException.NO_DATA_ALLOWED_ERR = 6; -DOMException.NO_MODIFICATION_ALLOWED_ERR = 7; -DOMException.NOT_FOUND_ERR = 8; -DOMException.NOT_SUPPORTED_ERR = 9; -DOMException.INUSE_ATTRIBUTE_ERR = 10; -DOMException.INVALID_STATE_ERR = 11; -DOMException.SYNTAX_ERR = 12; -DOMException.INVALID_MODIFICATION_ERR = 13; -DOMException.NAMESPACE_ERR = 14; -DOMException.INVALID_ACCESS_ERR = 15; -DOMException.prototype = new Error(); +(function(t) { +t.INDEX_SIZE_ERR = 1; +t.DOMSTRING_SIZE_ERR = 2; +t.HIERARCHY_REQUEST_ERR = 3; +t.WRONG_DOCUMENT_ERR = 4; +t.INVALID_CHARACTER_ERR = 5; +t.NO_DATA_ALLOWED_ERR = 6; +t.NO_MODIFICATION_ALLOWED_ERR = 7; +t.NOT_FOUND_ERR = 8; +t.NOT_SUPPORTED_ERR = 9; +t.INUSE_ATTRIBUTE_ERR = 10; +t.INVALID_STATE_ERR = 11; +t.SYNTAX_ERR = 12; +t.INVALID_MODIFICATION_ERR = 13; +t.NAMESPACE_ERR = 14; +t.INVALID_ACCESS_ERR = 15; +t.prototype = new Error(); +})(DOMException); /*DOMImplementation *DOMの基本的な機能をつかさどる @@ -213,19 +215,21 @@ this._capter = []; //eventで利用 return this; } +(function(t) { // NodeType -/*const unsigned short*/ Node.ELEMENT_NODE = 1; -/*const unsigned short*/ Node.ATTRIBUTE_NODE = 2; -/*const unsigned short*/ Node.TEXT_NODE = 3; -/*const unsigned short*/ Node.CDATA_SECTION_NODE = 4; -/*const unsigned short*/ Node.ENTITY_REFERENCE_NODE = 5; -/*const unsigned short*/ Node.ENTITY_NODE = 6; -/*const unsigned short*/ Node.PROCESSING_INSTRUCTION_NODE = 7; -/*const unsigned short*/ Node.COMMENT_NODE = 8; -/*const unsigned short*/ Node.DOCUMENT_NODE = 9; -/*const unsigned short*/ Node.DOCUMENT_TYPE_NODE = 10; -/*const unsigned short*/ Node.DOCUMENT_FRAGMENT_NODE = 11; -/*const unsigned short*/ Node.NOTATION_NODE = 12; +/*const unsigned short*/ t.ELEMENT_NODE = 1; +/*const unsigned short*/ t.ATTRIBUTE_NODE = 2; +/*const unsigned short*/ t.TEXT_NODE = 3; +/*const unsigned short*/ t.CDATA_SECTION_NODE = 4; +/*const unsigned short*/ t.ENTITY_REFERENCE_NODE = 5; +/*const unsigned short*/ t.ENTITY_NODE = 6; +/*const unsigned short*/ t.PROCESSING_INSTRUCTION_NODE = 7; +/*const unsigned short*/ t.COMMENT_NODE = 8; +/*const unsigned short*/ t.DOCUMENT_NODE = 9; +/*const unsigned short*/ t.DOCUMENT_TYPE_NODE = 10; +/*const unsigned short*/ t.DOCUMENT_FRAGMENT_NODE = 11; +/*const unsigned short*/ t.NOTATION_NODE = 12; +})(Node); Node.prototype = { //以下は初期値として設定 tar : null, Modified: branches/08x/085/org/w3c/dom/css.js =================================================================== --- branches/08x/085/org/w3c/dom/css.js 2011-09-11 10:50:28 UTC (rev 2934) +++ branches/08x/085/org/w3c/dom/css.js 2011-09-11 11:15:35 UTC (rev 2935) @@ -410,34 +410,36 @@ return this; }; -CSSPrimitiveValue.CSS_UNKNOWN = 0; -CSSPrimitiveValue.CSS_NUMBER = 1; -CSSPrimitiveValue.CSS_PERCENTAGE = 2; -CSSPrimitiveValue.CSS_EMS = 3; -CSSPrimitiveValue.CSS_EXS = 4; -CSSPrimitiveValue.CSS_PX = 5; -CSSPrimitiveValue.CSS_CM = 6; -CSSPrimitiveValue.CSS_MM = 7; -CSSPrimitiveValue.CSS_IN = 8; -CSSPrimitiveValue.CSS_PT = 9; -CSSPrimitiveValue.CSS_PC = 10; -CSSPrimitiveValue.CSS_DEG = 11; -CSSPrimitiveValue.CSS_RAD = 12; -CSSPrimitiveValue.CSS_GRAD = 13; -CSSPrimitiveValue.CSS_MS = 14; -CSSPrimitiveValue.CSS_S = 15; -CSSPrimitiveValue.CSS_HZ = 16; -CSSPrimitiveValue.CSS_KHZ = 17; -CSSPrimitiveValue.CSS_DIMENSION = 18; -CSSPrimitiveValue.CSS_STRING = 19; -CSSPrimitiveValue.CSS_URI = 20; -CSSPrimitiveValue.CSS_IDENT = 21; -CSSPrimitiveValue.CSS_ATTR = 22; -CSSPrimitiveValue.CSS_COUNTER = 23; -CSSPrimitiveValue.CSS_RECT = 24; -CSSPrimitiveValue.CSS_RGBCOLOR = 25; -CSSPrimitiveValue.prototype = new CSSValue(); -CSSPrimitiveValue.constructor = CSSValue; +(function(t) { +t.CSS_UNKNOWN = 0; +t.CSS_NUMBER = 1; +t.CSS_PERCENTAGE = 2; +t.CSS_EMS = 3; +t.CSS_EXS = 4; +t.CSS_PX = 5; +t.CSS_CM = 6; +t.CSS_MM = 7; +t.CSS_IN = 8; +t.CSS_PT = 9; +t.CSS_PC = 10; +t.CSS_DEG = 11; +t.CSS_RAD = 12; +t.CSS_GRAD = 13; +t.CSS_MS = 14; +t.CSS_S = 15; +t.CSS_HZ = 16; +t.CSS_KHZ = 17; +t.CSS_DIMENSION = 18; +t.CSS_STRING = 19; +t.CSS_URI = 20; +t.CSS_IDENT = 21; +t.CSS_ATTR = 22; +t.CSS_COUNTER = 23; +t.CSS_RECT = 24; +t.CSS_RGBCOLOR = 25; +t.prototype = new CSSValue(); +t.constructor = CSSValue; +})(CSSPrimitiveValue); (function(){ this._n = [1, 0.01, 1, 1, 1, 35.43307, 3.543307, 90, 1.25, 15, 1, 180 / Math.PI, 90/100, 1, 1000, 1, 1000, 1]; //CSS_PX単位への変換値(なお、CSS_SはCSS_MSに、CSS_RADとCSS_GRADはCSS_DEGに、CSS_KHZはCSS_HZに統一) Modified: branches/08x/085/org/w3c/dom/svg.js =================================================================== --- branches/08x/085/org/w3c/dom/svg.js 2011-09-11 10:50:28 UTC (rev 2934) +++ branches/08x/085/org/w3c/dom/svg.js 2011-09-11 11:15:35 UTC (rev 2935) @@ -528,18 +528,20 @@ function SVGLength() { return this; }; +(function(t) { // Length Unit Types - /*const unsigned short*/ SVGLength.SVG_LENGTHTYPE_UNKNOWN = 0; - /*const unsigned short*/ SVGLength.SVG_LENGTHTYPE_NUMBER = 1; - /*const unsigned short*/ SVGLength.SVG_LENGTHTYPE_PERCENTAGE = 2; - /*const unsigned short*/ SVGLength.SVG_LENGTHTYPE_EMS = 3; - /*const unsigned short*/ SVGLength.SVG_LENGTHTYPE_EXS = 4; - /*const unsigned short*/ SVGLength.SVG_LENGTHTYPE_PX = 5; - /*const unsigned short*/ SVGLength.SVG_LENGTHTYPE_CM = 6; - /*const unsigned short*/ SVGLength.SVG_LENGTHTYPE_MM = 7; - /*const unsigned short*/ SVGLength.SVG_LENGTHTYPE_IN = 8; - /*const unsigned short*/ SVGLength.SVG_LENGTHTYPE_PT = 9; - /*const unsigned short*/ SVGLength.SVG_LENGTHTYPE_PC = 10; + /*const unsigned short*/ t.SVG_LENGTHTYPE_UNKNOWN = 0; + /*const unsigned short*/ t.SVG_LENGTHTYPE_NUMBER = 1; + /*const unsigned short*/ t.SVG_LENGTHTYPE_PERCENTAGE = 2; + /*const unsigned short*/ t.SVG_LENGTHTYPE_EMS = 3; + /*const unsigned short*/ t.SVG_LENGTHTYPE_EXS = 4; + /*const unsigned short*/ t.SVG_LENGTHTYPE_PX = 5; + /*const unsigned short*/ t.SVG_LENGTHTYPE_CM = 6; + /*const unsigned short*/ t.SVG_LENGTHTYPE_MM = 7; + /*const unsigned short*/ t.SVG_LENGTHTYPE_IN = 8; + /*const unsigned short*/ t.SVG_LENGTHTYPE_PT = 9; + /*const unsigned short*/ t.SVG_LENGTHTYPE_PC = 10; +})(SVGLength); SVGLength.prototype = { /*readonly attribute unsigned short*/ unitType : SVGLength.SVG_LENGTHTYPE_UNKNOWN, @@ -2285,22 +2287,24 @@ /*unsigned short*/ this.meetOrSlice = SVGPreserveAspectRatio.SVG_MEETORSLICE_MEET; return this; }; +(function(t) { // Alignment Types - /*unsigned short*/ SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; - /*unsigned short*/ SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_NONE = 1; - /*unsigned short*/ SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMIN = 2; - /*unsigned short*/ SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3; - /*unsigned short*/ SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4; - /*unsigned short*/ SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMID = 5; - /*unsigned short*/ SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMID = 6; - /*unsigned short*/ SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMID = 7; - /*unsigned short*/ SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMAX = 8; - /*unsigned short*/ SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9; - /*unsigned short*/ SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10; + /*unsigned short*/ t.SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; + /*unsigned short*/ t.SVG_PRESERVEASPECTRATIO_NONE = 1; + /*unsigned short*/ t.SVG_PRESERVEASPECTRATIO_XMINYMIN = 2; + /*unsigned short*/ t.SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3; + /*unsigned short*/ t.SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4; + /*unsigned short*/ t.SVG_PRESERVEASPECTRATIO_XMINYMID = 5; + /*unsigned short*/ t.SVG_PRESERVEASPECTRATIO_XMIDYMID = 6; + /*unsigned short*/ t.SVG_PRESERVEASPECTRATIO_XMAXYMID = 7; + /*unsigned short*/ t.SVG_PRESERVEASPECTRATIO_XMINYMAX = 8; + /*unsigned short*/ t.SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9; + /*unsigned short*/ t.SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10; // Meet-or-slice Types - /*unsigned short*/ SVGPreserveAspectRatio.SVG_MEETORSLICE_UNKNOWN = 0; - /*unsigned short*/ SVGPreserveAspectRatio.SVG_MEETORSLICE_MEET = 1; - /*unsigned short*/ SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE = 2; + /*unsigned short*/ t.SVG_MEETORSLICE_UNKNOWN = 0; + /*unsigned short*/ t.SVG_MEETORSLICE_MEET = 1; + /*unsigned short*/ t.SVG_MEETORSLICE_SLICE = 2; +})(SVGPreserveAspectRatio); function SVGAnimatedPreserveAspectRatio() { /*readonly SVGPreserveAspectRatio*/ this.animVal = this.baseVal = new SVGPreserveAspectRatio(); @@ -2312,27 +2316,30 @@ /*readonly DOMString*/ this.pathSegTypeAsLetter = null; return this; }; + +(function(t) { // Path Segment Types - /*unsigned short*/ SVGPathSeg.PATHSEG_UNKNOWN = 0; - /*unsigned short*/ SVGPathSeg.PATHSEG_CLOSEPATH = 1; - /*unsigned short*/ SVGPathSeg.PATHSEG_MOVETO_ABS = 2; - /*unsigned short*/ SVGPathSeg.PATHSEG_MOVETO_REL = 3; - /*unsigned short*/ SVGPathSeg.PATHSEG_LINETO_ABS = 4; - /*unsigned short*/ SVGPathSeg.PATHSEG_LINETO_REL = 5; - /*unsigned short*/ SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS = 6; - /*unsigned short*/ SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL = 7; - /*unsigned short*/ SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS = 8; - /*unsigned short*/ SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL = 9; - /*unsigned short*/ SVGPathSeg.PATHSEG_ARC_ABS = 10; - /*unsigned short*/ SVGPathSeg.PATHSEG_ARC_REL = 11; - /*unsigned short*/ SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS = 12; - /*unsigned short*/ SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL = 13; - /*unsigned short*/ SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS = 14; - /*unsigned short*/ SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL = 15; - /*unsigned short*/ SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16; - /*unsigned short*/ SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17; - /*unsigned short*/ SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18; - /*unsigned short*/ SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19; + /*unsigned short*/ t.PATHSEG_UNKNOWN = 0; + /*unsigned short*/ t.PATHSEG_CLOSEPATH = 1; + /*unsigned short*/ t.PATHSEG_MOVETO_ABS = 2; + /*unsigned short*/ t.PATHSEG_MOVETO_REL = 3; + /*unsigned short*/ t.PATHSEG_LINETO_ABS = 4; + /*unsigned short*/ t.PATHSEG_LINETO_REL = 5; + /*unsigned short*/ t.PATHSEG_CURVETO_CUBIC_ABS = 6; + /*unsigned short*/ t.PATHSEG_CURVETO_CUBIC_REL = 7; + /*unsigned short*/ t.PATHSEG_CURVETO_QUADRATIC_ABS = 8; + /*unsigned short*/ t.PATHSEG_CURVETO_QUADRATIC_REL = 9; + /*unsigned short*/ t.PATHSEG_ARC_ABS = 10; + /*unsigned short*/ t.PATHSEG_ARC_REL = 11; + /*unsigned short*/ t.PATHSEG_LINETO_HORIZONTAL_ABS = 12; + /*unsigned short*/ t.PATHSEG_LINETO_HORIZONTAL_REL = 13; + /*unsigned short*/ t.PATHSEG_LINETO_VERTICAL_ABS = 14; + /*unsigned short*/ t.PATHSEG_LINETO_VERTICAL_REL = 15; + /*unsigned short*/ t.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16; + /*unsigned short*/ t.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17; + /*unsigned short*/ t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18; + /*unsigned short*/ t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19; +})(SVGPathSeg); /*SVGPathSegxx *軽量化のために、SVGPathSegの継承をしない。また、{}オブジェクトで代用する予定 */ @@ -4352,14 +4359,16 @@ SVGTextPathElement.constructor = SVGTextContentElement; SVGTextPathElement.prototype = new SVGTextContentElement(); +(function(t){ // textPath Method Types - /*unsigned short*/ SVGTextPathElement.TEXTPATH_METHODTYPE_UNKNOWN = 0; - /*unsigned short*/ SVGTextPathElement.TEXTPATH_METHODTYPE_ALIGN = 1; - /*unsigned short*/ SVGTextPathElement.TEXTPATH_METHODTYPE_STRETCH = 2; + /*unsigned short*/ t.TEXTPATH_METHODTYPE_UNKNOWN = 0; + /*unsigned short*/ t.TEXTPATH_METHODTYPE_ALIGN = 1; + /*unsigned short*/ t.TEXTPATH_METHODTYPE_STRETCH = 2; // textPath Spacing Types - /*unsigned short*/ SVGTextPathElement.TEXTPATH_SPACINGTYPE_UNKNOWN = 0; - /*unsigned short*/ SVGTextPathElement.TEXTPATH_SPACINGTYPE_AUTO = 1; - /*unsigned short*/ SVGTextPathElement.TEXTPATH_SPACINGTYPE_EXACT = 2; + /*unsigned short*/ t.TEXTPATH_SPACINGTYPE_UNKNOWN = 0; + /*unsigned short*/ t.TEXTPATH_SPACINGTYPE_AUTO = 1; + /*unsigned short*/ t.TEXTPATH_SPACINGTYPE_EXACT = 2; +})(SVGTextPathElement); function SVGAltGlyphElement() { SVGTextPositioningElement.apply(this, arguments); @@ -4405,23 +4414,25 @@ /*readonly DOMString*/ this.uri = null; return this; }; -SVGPaint.constructor = SVGColor; -SVGPaint.prototype = new SVGColor(); + +(function(t){ +t.constructor = SVGColor; +t.prototype = new SVGColor(); // Paint Types - /*unsigned short*/ SVGPaint.SVG_PAINTTYPE_UNKNOWN = 0; - /*unsigned short*/ SVGPaint.SVG_PAINTTYPE_RGBCOLOR = 1; - /*unsigned short*/ SVGPaint.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2; - /*unsigned short*/ SVGPaint.SVG_PAINTTYPE_NONE = 101; - /*unsigned short*/ SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR = 102; - /*unsigned short*/ SVGPaint.SVG_PAINTTYPE_URI_NONE = 103; - /*unsigned short*/ SVGPaint.SVG_PAINTTYPE_URI_CURRENTCOLOR = 104; - /*unsigned short*/ SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR = 105; - /*unsigned short*/ SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106; - /*unsigned short*/ SVGPaint.SVG_PAINTTYPE_URI = 107; -/*void*/ SVGPaint.prototype.setUri = function(/*DOMString*/ uri ) { + /*unsigned short*/ t.SVG_PAINTTYPE_UNKNOWN = 0; + /*unsigned short*/ t.SVG_PAINTTYPE_RGBCOLOR = 1; + /*unsigned short*/ t.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2; + /*unsigned short*/ t.SVG_PAINTTYPE_NONE = 101; + /*unsigned short*/ t.SVG_PAINTTYPE_CURRENTCOLOR = 102; + /*unsigned short*/ t.SVG_PAINTTYPE_URI_NONE = 103; + /*unsigned short*/ t.SVG_PAINTTYPE_URI_CURRENTCOLOR = 104; + /*unsigned short*/ t.SVG_PAINTTYPE_URI_RGBCOLOR = 105; + /*unsigned short*/ t.SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106; + /*unsigned short*/ t.SVG_PAINTTYPE_URI = 107; +/*void*/ t.prototype.setUri = function(/*DOMString*/ uri ) { this.setPaint(SVGPaint.SVG_PAINTTYPE_URI_NONE, uri, null, null); }; -/*void*/ SVGPaint.prototype.setPaint = function(/*unsigned short*/ paintType, /*DOMString*/ uri, /*DOMString*/ rgbColor, /*DOMString*/ iccColor ) { +/*void*/ t.prototype.setPaint = function(/*unsigned short*/ paintType, /*DOMString*/ uri, /*DOMString*/ rgbColor, /*DOMString*/ iccColor ) { if ((paintType < 101 && uri) || (paintType > 102 && !uri)) { throw new SVGException(SVGException.SVG_INVALID_VALUE_ERR); } @@ -4433,6 +4444,8 @@ this.setColor(paintType, rgbColor, iccColor); //SVGColorのsetColorメソッドを用いる }; // raises( SVGException ); +t = null; +})(SVGPaint); function SVGMarkerElement(){ SVGElement.apply(this, arguments); @@ -4449,23 +4462,24 @@ /*unsigned short*/ this.zoomAndPan = SVGZoomAndPan.SVG_ZOOMANDPAN_DISABLE; return this; }; +(function(t){ // Marker Unit Types - /*unsigned short*/ SVGMarkerElement.SVG_MARKERUNITS_UNKNOWN = 0; - /*unsigned short*/ SVGMarkerElement.SVG_MARKERUNITS_USERSPACEONUSE = 1; - /*unsigned short*/ SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH = 2; + /*unsigned short*/ t.SVG_MARKERUNITS_UNKNOWN = 0; + /*unsigned short*/ t.SVG_MARKERUNITS_USERSPACEONUSE = 1; + /*unsigned short*/ t.SVG_MARKERUNITS_STROKEWIDTH = 2; // Marker Orientation Types - /*unsigned short*/ SVGMarkerElement.SVG_MARKER_ORIENT_UNKNOWN = 0; - /*unsigned short*/ SVGMarkerElement.SVG_MARKER_ORIENT_AUTO = 1; - /*unsigned short*/ SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE = 2; -SVGMarkerElement.constructor = SVGElement; -SVGMarkerElement.prototype = new SVGElement(); -/*void*/ SVGMarkerElement.prototype.setOrientToAuto = function() { + /*unsigned short*/ t.SVG_MARKER_ORIENT_UNKNOWN = 0; + /*unsigned short*/ t.SVG_MARKER_ORIENT_AUTO = 1; + /*unsigned short*/ t.SVG_MARKER_ORIENT_ANGLE = 2; +t.constructor = SVGElement; +t.prototype = new SVGElement(); +/*void*/ t.prototype.setOrientToAuto = function() { }; -/*void*/ SVGMarkerElement.prototype.setOrientToAngle = function(/*SVGAngle*/ angle ) { +/*void*/ t.prototype.setOrientToAngle = function(/*SVGAngle*/ angle ) { }; - +})(SVGMarkerElement); function SVGColorProfileElement() { SVGElement.apply(this); /*DOMString*/ this._local; From svnnotify @ sourceforge.jp Mon Sep 12 20:02:22 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 12 Sep 2011 20:02:22 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTM2XSAgU1ZHVGV4dENv?= =?utf-8?b?bnRlbnRFbGVtZW5044Gu44OX44Ot44OR44OG44Kj44Gu44G744Go44KT44Gp?= =?utf-8?b?44KS44OX44Ot44OI44K/44Kk44OX44Gn44CB5Yid5pyf6Kit5a6a44GZ44KL?= =?utf-8?b?44KI44GG44Gr44GX44Gf?= Message-ID: <1315825342.820506.12376.nullmailer@users.sourceforge.jp> Revision: 2936 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2936 Author: dhrname Date: 2011-09-12 20:02:22 +0900 (Mon, 12 Sep 2011) Log Message: ----------- SVGTextContentElementのプロパティのほとんどをプロトタイプで、初期設定するようにした Modified Paths: -------------- branches/08x/085/org/w3c/dom/svg.js Modified: branches/08x/085/org/w3c/dom/svg.js =================================================================== --- branches/08x/085/org/w3c/dom/svg.js 2011-09-11 11:15:35 UTC (rev 2935) +++ branches/08x/085/org/w3c/dom/svg.js 2011-09-12 11:02:22 UTC (rev 2936) @@ -3841,13 +3841,8 @@ function SVGTextContentElement(_doc) { SVGElement.apply(this); - this._list = null; //文字の位置を格納しておくリストのキャッシュ - this._length = 0; //全文字数 - this._stx = this._sty = 0; //初めの文字の位置 - this._chars = 0; //tspan要素が全体の何文字目から始まっているか /*readonly SVGAnimatedLength*/ this.textLength = new SVGAnimatedLength(); /*readonly SVGAnimatedEnumeration*/ this.lengthAdjust = new SVGAnimatedEnumeration(SVGTextContentElement.LENGTHADJUST_UNKNOWN); - this._isYokogaki = true; this.addEventListener("DOMNodeInserted", function(evt){ var tar = evt.target, cur = evt.currentTarget; /*Bubblingフェーズの時にはもう、div要素をDOMツリーに挿入しておく必要があるため、 @@ -3882,16 +3877,23 @@ }, true); return this; }; -SVGTextContentElement.constructor = SVGElement; -SVGTextContentElement.prototype = new SVGElement(); + +(function(t) { +t.constructor = SVGElement; +t.prototype = new SVGElement(); // lengthAdjust Types - /*unsigned short*/ SVGTextContentElement.LENGTHADJUST_UNKNOWN = 0; - /*unsigned short*/ SVGTextContentElement.LENGTHADJUST_SPACING = 1; - /*unsigned short*/ SVGTextContentElement.LENGTHADJUST_SPACINGANDGLYPHS = 2; -/*long*/ SVGTextContentElement.prototype.getNumberOfChars = function() { + /*unsigned short*/ t.LENGTHADJUST_UNKNOWN = 0; + /*unsigned short*/ t.LENGTHADJUST_SPACING = 1; + /*unsigned short*/ t.LENGTHADJUST_SPACINGANDGLYPHS = 2; + t.prototype._list = null; //文字の位置を格納しておくリストのキャッシュ + t.prototype._length = 0; //全文字数 + t.prototype._stx = t.prototype._sty = 0; //初めの文字の位置 + t.prototype._chars = 0; //tspan要素が全体の何文字目から始まっているか + t.prototype._isYokogaki = true; //横書きかどうか +/*long*/ t.prototype.getNumberOfChars = function() { return (this._length); }; -/*float*/ SVGTextContentElement.prototype.getComputedTextLength = function() { +/*float*/ t.prototype.getComputedTextLength = function() { var l = this.textLength.baseVal; if ((l.value === 0) && (this.getNumberOfChars() > 0)) { /*何も設定されていない場合のみ、初期化を行う*/ @@ -3903,7 +3905,7 @@ /*getSubStringLengthメソッド *charnum番目の文字からnchars+charnum-1番目までの文字列の長さを求めて返す */ -/*float*/ SVGTextContentElement.prototype.getSubStringLength = function(/*unsigned long*/ charnum, /*unsigned long*/ nchars ) { +/*float*/ t.prototype.getSubStringLength = function(/*unsigned long*/ charnum, /*unsigned long*/ nchars ) { if (nchars === 0) { return 0; } @@ -3923,7 +3925,7 @@ tg = end = st = null; return s; } -/*SVGPoint*/ SVGTextContentElement.prototype.getStartPositionOfChar = function (/*unsigned long*/ charnum ) { +/*SVGPoint*/ t.prototype.getStartPositionOfChar = function (/*unsigned long*/ charnum ) { if (charnum > this.getNumberOfChars() || charnum < 0) { throw (new DOMException(DOMException.INDEX_SIZE_ERR)); } else { @@ -4072,7 +4074,7 @@ return s; } }; -/*SVGPoint*/ SVGTextContentElement.prototype.getEndPositionOfChar = function(/*unsigned long*/ charnum ) { +/*SVGPoint*/ t.prototype.getEndPositionOfChar = function(/*unsigned long*/ charnum ) { if (charnum > this.getNumberOfChars() || charnum < 0) { throw (new DOMException(DOMException.INDEX_SIZE_ERR)); } else { @@ -4087,18 +4089,19 @@ return s; } }; -/*SVGRect*/ SVGTextContentElement.prototype.getExtentOfChar = function(/*unsigned long*/ charnum ) { +/*SVGRect*/ t.prototype.getExtentOfChar = function(/*unsigned long*/ charnum ) { }; -/*float*/ SVGTextContentElement.prototype.getRotationOfChar = function(/*unsigned long*/ charnum ) { +/*float*/ t.prototype.getRotationOfChar = function(/*unsigned long*/ charnum ) { }; -/*long*/ SVGTextContentElement.prototype.getCharNumAtPosition = function(/*SVGPoint*/ point ) { +/*long*/ t.prototype.getCharNumAtPosition = function(/*SVGPoint*/ point ) { }; -/*void*/ SVGTextContentElement.prototype.selectSubString = function(/*unsigned long*/ charnum,/*unsigned long*/ nchars ) { +/*void*/ t.prototype.selectSubString = function(/*unsigned long*/ charnum,/*unsigned long*/ nchars ) { }; +})(SVGTextContentElement); function SVGTextPositioningElement(_doc) { SVGTextContentElement.apply(this, arguments); From svnnotify @ sourceforge.jp Mon Sep 12 20:29:50 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 12 Sep 2011 20:29:50 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTM3XSAgZ2V0U3RhcnRQ?= =?utf-8?b?b3NpdGlvbk9mQ2hhcuODoeOCveODg+ODieOBruWkieaVsOOCkui7vemHjw==?= =?utf-8?b?5YyW44Gu44Gf44KB5pW055CG?= Message-ID: <1315826990.022577.12666.nullmailer@users.sourceforge.jp> Revision: 2937 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2937 Author: dhrname Date: 2011-09-12 20:29:49 +0900 (Mon, 12 Sep 2011) Log Message: ----------- getStartPositionOfCharメソッドの変数を軽量化のため整理 Modified Paths: -------------- branches/08x/085/org/w3c/dom/svg.js Modified: branches/08x/085/org/w3c/dom/svg.js =================================================================== --- branches/08x/085/org/w3c/dom/svg.js 2011-09-12 11:02:22 UTC (rev 2936) +++ branches/08x/085/org/w3c/dom/svg.js 2011-09-12 11:29:49 UTC (rev 2937) @@ -3929,22 +3929,29 @@ if (charnum > this.getNumberOfChars() || charnum < 0) { throw (new DOMException(DOMException.INDEX_SIZE_ERR)); } else { - var tar = this, ti = tar.firstChild, tp = tar.parentNode; + var tar = this, + ti = tar.firstChild, + tp = tar.parentNode; if (!!!tar._list) { tar._list = []; - var chars = tar._chars; //現在、何文字目にあるのか - var x = tar._stx, y = tar._sty, n = 0; //現在のテキスト位置と順番 - var style = tar.ownerDocument.defaultView.getComputedStyle(tar, null); - var isYokogaki = ((style.getPropertyValue("writing-mode")) === "lr-tb") ? true : false; - var fontSize = parseFloat(style.getPropertyValue("font-size")); - var tx = tar.x.baseVal, ty = tar.y.baseVal, tdx = tar.dx.baseVal, tdy = tar.dy.baseVal; + var chars = tar._chars, //現在、何文字目にあるのか + x = tar._stx, y = tar._sty, n = 0, //現在のテキスト位置と順番 + style = tar.ownerDocument.defaultView.getComputedStyle(tar, null), + isYokogaki = ((style.getPropertyValue("writing-mode")) === "lr-tb") ? true : false, + fontSize = parseFloat(style.getPropertyValue("font-size")), + tx = tar.x.baseVal, ty = tar.y.baseVal, tdx = tar.dx.baseVal, tdy = tar.dy.baseVal; /*親要素の属性も参照しておく*/ if (tp && ((tp.localName === "text") ||(tp.localName === "tspan"))) { - var ptx = tp.x.baseVal, pty = tp.y.baseVal, ptdx = tp.dx.baseVal, ptdy = tp.dy.baseVal; + var ptx = tp.x.baseVal, + pty = tp.y.baseVal, + ptdx = tp.dx.baseVal, + ptdy = tp.dy.baseVal; } else { var ptx = pty = ptdx = ptdy = {numberOfItems : 0}; } - var kern = "f ijltIr.,:;'-\"()", akern = "1234567890abcdeghknopquvxyz"; + var kern = "f ijltIr.,:;'-\"()", + akern = "1234567890abcdeghknopquvxyz", + tt, alm, tdc, tcca, p, almx, almy, tlist, tg; if (isYokogaki && (tar.localName === "text")) { y += fontSize * 0.2; } else if (tar.localName === "text"){ @@ -3952,7 +3959,7 @@ } while (ti) { if (ti.nodeType === Node.TEXT_NODE) { - var tt = ti._tars; + tt = ti._tars; /*tspan要素のx属性で指定された座標の個数よりも、文字数が多い場合は、祖先(親)のx属性を *使う。また、属性が指定されていないときも同様に祖先や親を使う。 *もし、仮に祖先や親がx属性を指定されていなければ、現在のテキスト位置(変数xに格納している)を使う。 @@ -3995,10 +4002,10 @@ } else if (n < tdy.numberOfItems) { y += tdy.getItem(n).value; } - var alm = 0; + alm = 0; if (isYokogaki) { //カーニングを求めて、字の幅を文字ごとに調整する - var tdc = ti.data.charAt(i); + tdc = ti.data.charAt(i); if (kern.indexOf(tdc) > -1) { alm = fontSize * 0.68; } else if (tdc === "s"){ @@ -4010,18 +4017,18 @@ } else { alm = fontSize * 0.3; } - var tcca = tdc.charCodeAt(0); + tcca = tdc.charCodeAt(0); if ((12288 <= tcca) && (tcca <= 65533)) { alm = -fontSize * 0.01; if ((tdc === "う") || (tdc === "く") || (tdc === "し") || (tdc === "ち")) { alm += fontSize * 0.2; } } - tcca = null; } - tar._list[tar._list.length] = x; - tar._list[tar._list.length] = y; - tar._list[tar._list.length] = fontSize - alm; + tlist = tar._list; + tlist[tlist.length] = x; + tlist[tlist.length] = y; + tlist[tlist.length] = fontSize - alm; if (isYokogaki) { x += fontSize; x -= alm; @@ -4042,8 +4049,9 @@ ti._stx = x; ti._sty = y; ti._chars = chars; - var p = ti.getStartPositionOfChar(ti.getNumberOfChars()); - var almx = 0, almy = 0; + p = ti.getStartPositionOfChar(ti.getNumberOfChars()); + almx = 0; + almy = 0; if (isYokogaki) { almx = ti._list[ti._list.length-1]; } else { @@ -4052,10 +4060,9 @@ x = ti._list[ti._list.length-3] + almx; y = ti._list[ti._list.length-2] + almy; tar._list = tar._list.concat(ti._list); - var tg = ti.getNumberOfChars(); + tg = ti.getNumberOfChars(); n += tg; chars += tg; - p = tg = null; ti = ti.nextSibling; } else if ((ti.localName === "a") && (ti.namespaceURI === "http://www.w3.org/2000/svg") && ti.firstChild) { /*a要素のテキストノードも処理する*/ @@ -4065,8 +4072,8 @@ } } tar._isYokogaki = isYokogaki //getEndPositionOfCharメソッドなどで使う - tar = ti = tp = ptx = pty = tx = ty = chars = style = x = y = isYokogaki = null; } + tar = ti = tp = ptx = pty = tx = ty = chars = style = x = y = isYokogaki = kern = akern = tt = alm = tdc = tcca = p = almx = almy = tlist = tg = null; var s = this.ownerDocument.documentElement.createSVGPoint(); s.x = this._list[charnum*3]; s.y = this._list[charnum*3 + 1]; From svnnotify @ sourceforge.jp Mon Sep 12 23:15:37 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 12 Sep 2011 23:15:37 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTM4XSBFbmdsaXNoIHBh?= =?utf-8?q?ges_added?= Message-ID: <1315836937.352829.25886.nullmailer@users.sourceforge.jp> Revision: 2938 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2938 Author: dhrname Date: 2011-09-12 23:15:36 +0900 (Mon, 12 Sep 2011) Log Message: ----------- English pages added Added Paths: ----------- trunk/web_site/ trunk/web_site/goals.en.html trunk/web_site/htaccess.txt trunk/web_site/index.en.html Property changes on: trunk/web_site ___________________________________________________________________ Added: bugtraq:number + true Added: trunk/web_site/goals.en.html =================================================================== --- trunk/web_site/goals.en.html (rev 0) +++ trunk/web_site/goals.en.html 2011-09-12 14:15:36 UTC (rev 2938) @@ -0,0 +1,73 @@ + + + +Project Goals - SIE + + + + + + + +

+

Home > Goals

+

Project Goals - SIE

+

This version is 2011-4-13.

+

The 'SIE' is an Opensorce software to display a W3C standard Scalable Vector Graphics ( SVG ) on the World Wide Web. SVG is a language for drawing 2D graphics. The SIE project is a community of SIE developers. We will maintain the Web standard, and provide to access the SIE's code.

+

Goals

+

1, SVG on the Web

+

The project focuses on the development of SIE with which almost browsers are able to show vector graphics such as SVG. A Hyperlink function is given in SVG like HTML.

+

2, Open Source

+

SIE should be under the Opensource licenses such as MPL1.1, LGPL2.1 and GPL2.0 (or othor Opensource Licenses). SIE users can create, modifiy, or provide it freely.

+

3, Compatibility

+

For the comptibility of SIE, SIE aim to meet a Web standard.

+

4, Light Weight

+

SIE will be light weight, because improving heigh speed in SIE is important.

+

No Goals

+

1, SIE is not a tool to create an image

+

The project doesn't provide a creating tool for images and movies.

+

2, SIE project is not a solution.

+

We, as a community, do not take a solution.

+

3, SIE is not the Rich Internet Application ( RIA ).

+

The RIA, rich web application is not supported in our project.

+

4, SIE is not a movie player.

+

We do not develop the media player to play a movie.

+

SourceForge.jp

+
© Copyright 2007 dhrname (E-mail: sie-developers @ lists.sourceforge.jp)
+ + + \ No newline at end of file Added: trunk/web_site/htaccess.txt =================================================================== --- trunk/web_site/htaccess.txt (rev 0) +++ trunk/web_site/htaccess.txt 2011-09-12 14:15:36 UTC (rev 2938) @@ -0,0 +1,4 @@ +AddLanguage jp .ja +AddLanguage en .en + +LanguagePriority jp en \ No newline at end of file Added: trunk/web_site/index.en.html =================================================================== --- trunk/web_site/index.en.html (rev 0) +++ trunk/web_site/index.en.html 2011-09-12 14:15:36 UTC (rev 2938) @@ -0,0 +1,71 @@ +? + + +SIE + + + + + + +

+ +

SIEt

+

Download

+

sie-084.zip (ZIP 436 KB)

+

Requirements

+

Internet Explorer6.0+, Mozilla Firefox4+, Opera10.0+, Safari3.0+ or Google Chrome3.0+

+

A HTTP Server Soft (Apache)

+

What's SIE

+

The 'SIE' is an Opensorce software to display a W3C standard Scalable Vector Graphics (i.e. SVG) on the World Wide Web. SVG is a language for drawing a vector graphics like HTML. It's used in Inkscape, Illustlator and so on.

+

The SIE Project is a community of the SIE developers. We will support the Web standards Graphics, and provide to access the SIE's code.

+

Features

+
    +
  1. Cross-browser
  2. +
  3. Without plug-in
  4. +
  5. Displaying SVG
  6. +
  7. Opensource
  8. +
+

License

+

MPL 1.1/GPL 2.0/LGPL 2.1

+

Goals

+

See 「SIE project's goal」.

+

SourceForge.jp

+
© Copyright 2007 dhrname (E-mail: sie-developers @ lists.sourceforge.jp)
+ + + \ No newline at end of file From svnnotify @ sourceforge.jp Mon Sep 12 23:30:09 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 12 Sep 2011 23:30:09 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTM5XQ==?= Message-ID: <1315837809.265040.13398.nullmailer@users.sourceforge.jp> Revision: 2939 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2939 Author: dhrname Date: 2011-09-12 23:30:09 +0900 (Mon, 12 Sep 2011) Log Message: ----------- Added Paths: ----------- trunk/web_site/screenshot.en.html Added: trunk/web_site/screenshot.en.html =================================================================== --- trunk/web_site/screenshot.en.html (rev 0) +++ trunk/web_site/screenshot.en.html 2011-09-12 14:30:09 UTC (rev 2939) @@ -0,0 +1,63 @@ +? + + +Screenshot- SIE + + + + + + + +

+

Home > Screenshot

+

Screenshot - SIE

+

Screenshot for Browsers

+

The pictures is captured on each browsers.

+

For Firefox

+

Firefox 2.0.0.24 (Windows XP SP2 PNG, 59.5kb)

+

For Internet Explorer

+

Internet Explorer 7.0.5730.13 (Windows XP SP2 PNG, 20.4kb)

+

For Safari

+

Safari 3.1.1(525.17) (Windows XP SP2 PNG, 37.8kb)

+

For Opera

+

Opera 9.27 (Windows XP SP2 PNG, 19.7kb)

+

back to Home

+
© Copyright 2007 dhrname (E-mail: sie-developers @ lists.sourceforge.jp)
+ + + \ No newline at end of file From svnnotify @ sourceforge.jp Tue Sep 13 21:16:38 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 13 Sep 2011 21:16:38 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTQyXQ==?= Message-ID: <1315916198.034523.18930.nullmailer@users.sourceforge.jp> Revision: 2942 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2942 Author: dhrname Date: 2011-09-13 21:16:37 +0900 (Tue, 13 Sep 2011) Log Message: ----------- Added Paths: ----------- branches/08x/086/ Property changes on: branches/08x/086 ___________________________________________________________________ Added: bugtraq:number + true From svnnotify @ sourceforge.jp Tue Sep 13 21:16:59 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 13 Sep 2011 21:16:59 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTQzXSAwLjg2IGJyYW5j?= =?utf-8?q?hes?= Message-ID: <1315916219.951955.19076.nullmailer@users.sourceforge.jp> Revision: 2943 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2943 Author: dhrname Date: 2011-09-13 21:16:59 +0900 (Tue, 13 Sep 2011) Log Message: ----------- 0.86 branches Added Paths: ----------- branches/08x/086/org/ Property changes on: branches/08x/086/org ___________________________________________________________________ Added: svn:mergeinfo + /branches/06x/061/org:1864-2067 /branches/06x/062/org:2071-2106 /branches/06x/063/org:2110-2146 /branches/06x/064/org:2149-2177 /branches/06x/065/org:2179-2209 /branches/06x/066/org:2211-2236 /branches/06x/067/org:2257-2282 /branches/06x/068/org:2284-2314 /branches/06x/069/org:2317-2352 /branches/06x/org:1861-2353 /branches/07x/070/org:2363-2383 /branches/07x/071/org:2385-2433 /branches/07x/072/org:2435-2474 /branches/07x/073/org:2476-2509 /branches/07x/074/org:2511-2556 /branches/07x/075/org:2558-2597 /branches/07x/076/org:2600-2631,2642 /branches/07x/077/org:2635-2677 /branches/07x/078/org:2679-2726 /branches/07x/079/org:2728-2745 /branches/07x/org:2356-2753 /branches/07x/org/org:2643 /branches/08x/080/org:2758-2785 /branches/08x/081/org:2787-2814 /branches/08x/082/org:2817-2843 /branches/08x/083/org:2845-2872 /branches/08x/084/org:2874-2908 /branches/08x/085/org:2910-2939 From svnnotify @ sourceforge.jp Tue Sep 13 21:29:12 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 13 Sep 2011 21:29:12 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTQ1XQ==?= Message-ID: <1315916952.055789.2203.nullmailer@users.sourceforge.jp> Revision: 2945 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2945 Author: dhrname Date: 2011-09-13 21:29:12 +0900 (Tue, 13 Sep 2011) Log Message: ----------- Modified Paths: -------------- trunk/web_site/index.en.html Modified: trunk/web_site/index.en.html =================================================================== --- trunk/web_site/index.en.html 2011-09-13 12:21:56 UTC (rev 2944) +++ trunk/web_site/index.en.html 2011-09-13 12:29:12 UTC (rev 2945) @@ -16,14 +16,14 @@
  • Demo
  • Getting involved
  • -

    SIEt

    +

    SIE

    Download

    sie-084.zip (ZIP 436 KB)

    Requirements

    Internet Explorer6.0+, Mozilla Firefox4+, Opera10.0+, Safari3.0+ or Google Chrome3.0+

    A HTTP Server Soft (Apache)

    What's SIE

    -

    The 'SIE' is an Opensorce software to display a W3C standard Scalable Vector Graphics (i.e. SVG) on the World Wide Web. SVG is a language for drawing a vector graphics like HTML. It's used in Inkscape, Illustlator and so on.

    +

    The 'SIE' is an Opensorce rendring engine written in JavaScript to display a W3C standard Scalable Vector Graphics (i.e. SVG) on the World Wide Web. SVG is a language for drawing a vector graphics like HTML. It's used in Inkscape, Illustlator and so on.

    The SIE Project is a community of the SIE developers. We will support the Web standards Graphics, and provide to access the SIE's code.

    Features

      From svnnotify @ sourceforge.jp Tue Sep 13 21:43:38 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 13 Sep 2011 21:43:38 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTQ3XQ==?= Message-ID: <1315917818.918707.20476.nullmailer@users.sourceforge.jp> Revision: 2947 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2947 Author: dhrname Date: 2011-09-13 21:43:38 +0900 (Tue, 13 Sep 2011) Log Message: ----------- Modified Paths: -------------- trunk/Spec/SpecRunner.html Modified: trunk/Spec/SpecRunner.html =================================================================== --- trunk/Spec/SpecRunner.html 2011-09-13 12:36:37 UTC (rev 2946) +++ trunk/Spec/SpecRunner.html 2011-09-13 12:43:38 UTC (rev 2947) @@ -8,12 +8,12 @@ - - - - - - + + + + + + From svnnotify @ sourceforge.jp Tue Sep 13 21:48:36 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 13 Sep 2011 21:48:36 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTQ4XSAwLiA4NWJldGE=?= =?utf-8?b?44Gu5pu05paw5bGl5q2044KS6L+95Yqg?= Message-ID: <1315918116.453907.27974.nullmailer@users.sourceforge.jp> Revision: 2948 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2948 Author: dhrname Date: 2011-09-13 21:48:36 +0900 (Tue, 13 Sep 2011) Log Message: ----------- 0.85betaの更新履歴を追加 Modified Paths: -------------- trunk/ChangeLog.txt Modified: trunk/ChangeLog.txt =================================================================== --- trunk/ChangeLog.txt 2011-09-13 12:43:38 UTC (rev 2947) +++ trunk/ChangeLog.txt 2011-09-13 12:48:36 UTC (rev 2948) @@ -1,4 +1,16 @@ -?2011-9-7 version 0.84 +?2011-9-13 version 0.85beta +version 0.84からの変更点 +1, addEventListenerメソッドとinitEventメソッドの変数の解放処理を加えた +2, SVGElementの変数とif文の整理をして、軽量化 +3, image要素の画像読み込みを高速化 +4, SVGTextElementの変数を整理 +5, SVGTextElementを改良して、text要素のxとy属性が一つの数値からなるリストの場合のみ、字詰め処理をブラウザに任せるようにした +6, text要素にtext-decoration属性(プロパティ)、font-weight属性(プロパティ)などを実装 +7, 定数の設定を見直して軽量化 +8, SVGTextContentElementのプロパティのほとんどをプロトタイプで、初期設定するようにした +9, getStartPositionOfCharメソッドの変数を軽量化のため整理 + +2011-9-7 version 0.84 version 0.83からの変更点 1, div要素のmarginプロパティ指定値に関するミスを修正 2, SVGURIReferenceインターフェースと、関連する要素を改良して、SVGLoadイベントが2度起きるバグを修正 From svnnotify @ sourceforge.jp Thu Sep 15 20:15:09 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Thu, 15 Sep 2011 20:15:09 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTQ5XSAg44Oe44Km44K5?= =?utf-8?b?6Zai6YCj44Gu5YuV55qE44Gq44Kk44OZ44Oz44OI44Gn44Kv44Ot44O844K4?= =?utf-8?b?44Oj44Gu5Yem55CG44Of44K544GM44GC44Gj44Gf44Gu44Gn5L+u5q2j?= Message-ID: <1316085309.318891.23891.nullmailer@users.sourceforge.jp> Revision: 2949 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2949 Author: dhrname Date: 2011-09-15 20:15:09 +0900 (Thu, 15 Sep 2011) Log Message: ----------- マウス関連の動的なイベントでクロージャの処理ミスがあったので修正 Modified Paths: -------------- branches/08x/085/org/w3c/dom/events.js Modified: branches/08x/085/org/w3c/dom/events.js =================================================================== --- branches/08x/085/org/w3c/dom/events.js 2011-09-13 12:48:36 UTC (rev 2948) +++ branches/08x/085/org/w3c/dom/events.js 2011-09-15 11:15:09 UTC (rev 2949) @@ -116,7 +116,7 @@ this._capter.push(s); //このノードにリスナーを登録しておく if ((t !== "D") && (t !== "S") && (type !== "beginEvent") && (type !== "endEvent") && (type !== "repeatEvent")) { //MouseEventsならば that = this; - that._tar && that._tar.attachEvent("on" +type, (function(node) { + that._tar && that._tar.attachEvent("on" +type, (function(node, type) { return function(){ var evt = node.ownerDocument.createEvent("MouseEvents"); evt.initMouseEvent(type, true, true, node.ownerDocument.defaultView, 0); @@ -125,7 +125,7 @@ node.ownerDocument._window.event.cancelBubble = true; evt = null; }; - })(that) + })(that, type) ); } type = listener = useCapture = s = t = that = null; From svnnotify @ sourceforge.jp Thu Sep 15 20:17:24 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Thu, 15 Sep 2011 20:17:24 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTUwXSAg44Oe44Km44K5?= =?utf-8?b?6Zai6YCj44Gu5YuV55qE44Gq44Kk44OZ44Oz44OI44Gn44Kv44Ot44O844K4?= =?utf-8?b?44Oj44Gu5Yem55CG44Of44K544GM44GC44Gj44Gf44Gu44Gn5L+u5q2jIChi?= =?utf-8?q?eta_fixed=29?= Message-ID: <1316085444.526475.26267.nullmailer@users.sourceforge.jp> Revision: 2950 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2950 Author: dhrname Date: 2011-09-15 20:17:24 +0900 (Thu, 15 Sep 2011) Log Message: ----------- マウス関連の動的なイベントでクロージャの処理ミスがあったので修正 (beta fixed) Modified Paths: -------------- branches/08x/org/w3c/dom/events.js Property Changed: ---------------- branches/08x/org/w3c/dom/events.js Modified: branches/08x/org/w3c/dom/events.js =================================================================== --- branches/08x/org/w3c/dom/events.js 2011-09-15 11:15:09 UTC (rev 2949) +++ branches/08x/org/w3c/dom/events.js 2011-09-15 11:17:24 UTC (rev 2950) @@ -116,7 +116,7 @@ this._capter.push(s); //このノードにリスナーを登録しておく if ((t !== "D") && (t !== "S") && (type !== "beginEvent") && (type !== "endEvent") && (type !== "repeatEvent")) { //MouseEventsならば that = this; - that._tar && that._tar.attachEvent("on" +type, (function(node) { + that._tar && that._tar.attachEvent("on" +type, (function(node, type) { return function(){ var evt = node.ownerDocument.createEvent("MouseEvents"); evt.initMouseEvent(type, true, true, node.ownerDocument.defaultView, 0); @@ -125,7 +125,7 @@ node.ownerDocument._window.event.cancelBubble = true; evt = null; }; - })(that) + })(that, type) ); } type = listener = useCapture = s = t = that = null; Property changes on: branches/08x/org/w3c/dom/events.js ___________________________________________________________________ Modified: svn:mergeinfo - /branches/06x/061/org/w3c/dom/events.js:1864-2067 /branches/06x/062/org/w3c/dom/events.js:2071-2106 /branches/06x/063/org/w3c/dom/events.js:2110-2146 /branches/06x/064/org/w3c/dom/events.js:2149-2177 /branches/06x/065/org/w3c/dom/events.js:2179-2209 /branches/06x/066/org/w3c/dom/events.js:2211-2244 /branches/06x/067/org/w3c/dom/events.js:2257-2282 /branches/06x/068/org/w3c/dom/events.js:2284-2314 /branches/06x/069/org/w3c/dom/events.js:2317-2352 /branches/06x/org/w3c/dom/events.js:1861-2353 /branches/07x/070/org/w3c/dom/events.js:2363-2383 /branches/07x/071/org/w3c/dom/events.js:2385-2433 /branches/07x/072/org/w3c/dom/events.js:2435-2474 /branches/07x/073/org/w3c/dom/events.js:2476-2509 /branches/07x/074/org/w3c/dom/events.js:2511-2556 /branches/07x/075/org/w3c/dom/events.js:2558-2597 /branches/07x/076/org/w3c/dom/events.js:2600-2631,2642 /branches/07x/077/org/w3c/dom/events.js:2635-2677 /branches/07x/078/org/w3c/dom/events.js:2679-2726 /branches/07x/079/org/w3c/dom/events.js:2728-2745 /branches/07x/org/org/w3c/dom/events.js:2643 /branches/07x/org/w3c/dom/events.js:2356-2753 /branches/08x/080/org/w3c/dom/events.js:2758-2785 /branches/08x/081/org/w3c/dom/events.js:2787-2814 /branches/08x/082/org/w3c/dom/events.js:2817-2843 /branches/08x/083/org/w3c/dom/events.js:2845-2872 /branches/08x/084/org/w3c/dom/events.js:2874-2908 /branches/08x/085/org/w3c/dom/events.js:2910-2939 /branches/ufltima/dom/events.js:1621-1856 + /branches/06x/061/org/w3c/dom/events.js:1864-2067 /branches/06x/062/org/w3c/dom/events.js:2071-2106 /branches/06x/063/org/w3c/dom/events.js:2110-2146 /branches/06x/064/org/w3c/dom/events.js:2149-2177 /branches/06x/065/org/w3c/dom/events.js:2179-2209 /branches/06x/066/org/w3c/dom/events.js:2211-2244 /branches/06x/067/org/w3c/dom/events.js:2257-2282 /branches/06x/068/org/w3c/dom/events.js:2284-2314 /branches/06x/069/org/w3c/dom/events.js:2317-2352 /branches/06x/org/w3c/dom/events.js:1861-2353 /branches/07x/070/org/w3c/dom/events.js:2363-2383 /branches/07x/071/org/w3c/dom/events.js:2385-2433 /branches/07x/072/org/w3c/dom/events.js:2435-2474 /branches/07x/073/org/w3c/dom/events.js:2476-2509 /branches/07x/074/org/w3c/dom/events.js:2511-2556 /branches/07x/075/org/w3c/dom/events.js:2558-2597 /branches/07x/076/org/w3c/dom/events.js:2600-2631,2642 /branches/07x/077/org/w3c/dom/events.js:2635-2677 /branches/07x/078/org/w3c/dom/events.js:2679-2726 /branches/07x/079/org/w3c/dom/events.js:2728-2745 /branches/07x/org/org/w3c/dom/events.js:2643 /branches/07x/org/w3c/dom/events.js:2356-2753 /branches/08x/080/org/w3c/dom/events.js:2758-2785 /branches/08x/081/org/w3c/dom/events.js:2787-2814 /branches/08x/082/org/w3c/dom/events.js:2817-2843 /branches/08x/083/org/w3c/dom/events.js:2845-2872 /branches/08x/084/org/w3c/dom/events.js:2874-2908 /branches/08x/085/org/w3c/dom/events.js:2910-2939,2949 /branches/ufltima/dom/events.js:1621-1856 From svnnotify @ sourceforge.jp Thu Sep 15 20:19:26 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Thu, 15 Sep 2011 20:19:26 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTUxXSAwLiA4NeOBrg==?= =?utf-8?b?44OZ44O844K/54mI44Gu5L+u5q2j44KS5Y+W44KK6L6844KT44Gg?= Message-ID: <1316085566.082615.28952.nullmailer@users.sourceforge.jp> Revision: 2951 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2951 Author: dhrname Date: 2011-09-15 20:19:26 +0900 (Thu, 15 Sep 2011) Log Message: ----------- 0.85のベータ版の修正を取り込んだ Modified Paths: -------------- branches/08x/086/org/w3c/dom/events.js Property Changed: ---------------- branches/08x/086/org/w3c/dom/events.js Modified: branches/08x/086/org/w3c/dom/events.js =================================================================== --- branches/08x/086/org/w3c/dom/events.js 2011-09-15 11:17:24 UTC (rev 2950) +++ branches/08x/086/org/w3c/dom/events.js 2011-09-15 11:19:26 UTC (rev 2951) @@ -116,7 +116,7 @@ this._capter.push(s); //このノードにリスナーを登録しておく if ((t !== "D") && (t !== "S") && (type !== "beginEvent") && (type !== "endEvent") && (type !== "repeatEvent")) { //MouseEventsならば that = this; - that._tar && that._tar.attachEvent("on" +type, (function(node) { + that._tar && that._tar.attachEvent("on" +type, (function(node, type) { return function(){ var evt = node.ownerDocument.createEvent("MouseEvents"); evt.initMouseEvent(type, true, true, node.ownerDocument.defaultView, 0); @@ -125,7 +125,7 @@ node.ownerDocument._window.event.cancelBubble = true; evt = null; }; - })(that) + })(that, type) ); } type = listener = useCapture = s = t = that = null; Property changes on: branches/08x/086/org/w3c/dom/events.js ___________________________________________________________________ Modified: svn:mergeinfo - /branches/06x/061/org/w3c/dom/events.js:1864-2067 /branches/06x/062/org/w3c/dom/events.js:2071-2106 /branches/06x/063/org/w3c/dom/events.js:2110-2146 /branches/06x/064/org/w3c/dom/events.js:2149-2177 /branches/06x/065/org/w3c/dom/events.js:2179-2209 /branches/06x/066/org/w3c/dom/events.js:2211-2244 /branches/06x/067/org/w3c/dom/events.js:2257-2282 /branches/06x/068/org/w3c/dom/events.js:2284-2314 /branches/06x/069/org/w3c/dom/events.js:2317-2352 /branches/06x/org/w3c/dom/events.js:1861-2353 /branches/07x/070/org/w3c/dom/events.js:2363-2383 /branches/07x/071/org/w3c/dom/events.js:2385-2433 /branches/07x/072/org/w3c/dom/events.js:2435-2474 /branches/07x/073/org/w3c/dom/events.js:2476-2509 /branches/07x/074/org/w3c/dom/events.js:2511-2556 /branches/07x/075/org/w3c/dom/events.js:2558-2597 /branches/07x/076/org/w3c/dom/events.js:2600-2631,2642 /branches/07x/077/org/w3c/dom/events.js:2635-2677 /branches/07x/078/org/w3c/dom/events.js:2679-2726 /branches/07x/079/org/w3c/dom/events.js:2728-2745 /branches/07x/org/org/w3c/dom/events.js:2643 /branches/07x/org/w3c/dom/events.js:2356-2753 /branches/08x/080/org/w3c/dom/events.js:2758-2785 /branches/08x/081/org/w3c/dom/events.js:2787-2814 /branches/08x/082/org/w3c/dom/events.js:2817-2843 /branches/08x/083/org/w3c/dom/events.js:2845-2872 /branches/08x/084/org/w3c/dom/events.js:2874-2908 /branches/08x/085/org/w3c/dom/events.js:2910-2939 /branches/ufltima/dom/events.js:1621-1856 + /branches/06x/061/org/w3c/dom/events.js:1864-2067 /branches/06x/062/org/w3c/dom/events.js:2071-2106 /branches/06x/063/org/w3c/dom/events.js:2110-2146 /branches/06x/064/org/w3c/dom/events.js:2149-2177 /branches/06x/065/org/w3c/dom/events.js:2179-2209 /branches/06x/066/org/w3c/dom/events.js:2211-2244 /branches/06x/067/org/w3c/dom/events.js:2257-2282 /branches/06x/068/org/w3c/dom/events.js:2284-2314 /branches/06x/069/org/w3c/dom/events.js:2317-2352 /branches/06x/org/w3c/dom/events.js:1861-2353 /branches/07x/070/org/w3c/dom/events.js:2363-2383 /branches/07x/071/org/w3c/dom/events.js:2385-2433 /branches/07x/072/org/w3c/dom/events.js:2435-2474 /branches/07x/073/org/w3c/dom/events.js:2476-2509 /branches/07x/074/org/w3c/dom/events.js:2511-2556 /branches/07x/075/org/w3c/dom/events.js:2558-2597 /branches/07x/076/org/w3c/dom/events.js:2600-2631,2642 /branches/07x/077/org/w3c/dom/events.js:2635-2677 /branches/07x/078/org/w3c/dom/events.js:2679-2726 /branches/07x/079/org/w3c/dom/events.js:2728-2745 /branches/07x/org/org/w3c/dom/events.js:2643 /branches/07x/org/w3c/dom/events.js:2356-2753 /branches/08x/080/org/w3c/dom/events.js:2758-2785 /branches/08x/081/org/w3c/dom/events.js:2787-2814 /branches/08x/082/org/w3c/dom/events.js:2817-2843 /branches/08x/083/org/w3c/dom/events.js:2845-2872 /branches/08x/084/org/w3c/dom/events.js:2874-2908 /branches/08x/085/org/w3c/dom/events.js:2910-2939,2949 /branches/08x/org/w3c/dom/events.js:2755-2756,2941-2950 /branches/ufltima/dom/events.js:1621-1856 From svnnotify @ sourceforge.jp Thu Sep 15 20:22:07 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Thu, 15 Sep 2011 20:22:07 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTUyXSAwLiA4NWJldGE=?= =?utf-8?b?5L+u5q2j?= Message-ID: <1316085727.009267.32433.nullmailer@users.sourceforge.jp> Revision: 2952 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2952 Author: dhrname Date: 2011-09-15 20:22:06 +0900 (Thu, 15 Sep 2011) Log Message: ----------- 0.85beta修正 Modified Paths: -------------- branches/08x/sie.js Modified: branches/08x/sie.js =================================================================== --- branches/08x/sie.js 2011-09-15 11:19:26 UTC (rev 2951) +++ branches/08x/sie.js 2011-09-15 11:22:06 UTC (rev 2952) @@ -985,7 +985,7 @@ this._capter.push(s); //このノードにリスナーを登録しておく if ((t !== "D") && (t !== "S") && (type !== "beginEvent") && (type !== "endEvent") && (type !== "repeatEvent")) { //MouseEventsならば that = this; - that._tar && that._tar.attachEvent("on" +type, (function(node) { + that._tar && that._tar.attachEvent("on" +type, (function(node, type) { return function(){ var evt = node.ownerDocument.createEvent("MouseEvents"); evt.initMouseEvent(type, true, true, node.ownerDocument.defaultView, 0); @@ -994,7 +994,7 @@ node.ownerDocument._window.event.cancelBubble = true; evt = null; }; - })(that) + })(that, type) ); } type = listener = useCapture = s = t = that = null; From svnnotify @ sourceforge.jp Thu Sep 15 20:23:30 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Thu, 15 Sep 2011 20:23:30 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTUzXSAwLjg1YmV0YSBm?= =?utf-8?q?ixed?= Message-ID: <1316085810.198076.1324.nullmailer@users.sourceforge.jp> Revision: 2953 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2953 Author: dhrname Date: 2011-09-15 20:23:30 +0900 (Thu, 15 Sep 2011) Log Message: ----------- 0.85beta fixed Modified Paths: -------------- trunk/sie.js Property Changed: ---------------- trunk/sie.js Modified: trunk/sie.js =================================================================== --- trunk/sie.js 2011-09-15 11:22:06 UTC (rev 2952) +++ trunk/sie.js 2011-09-15 11:23:30 UTC (rev 2953) @@ -985,7 +985,7 @@ this._capter.push(s); //このノードにリスナーを登録しておく if ((t !== "D") && (t !== "S") && (type !== "beginEvent") && (type !== "endEvent") && (type !== "repeatEvent")) { //MouseEventsならば that = this; - that._tar && that._tar.attachEvent("on" +type, (function(node) { + that._tar && that._tar.attachEvent("on" +type, (function(node, type) { return function(){ var evt = node.ownerDocument.createEvent("MouseEvents"); evt.initMouseEvent(type, true, true, node.ownerDocument.defaultView, 0); @@ -994,7 +994,7 @@ node.ownerDocument._window.event.cancelBubble = true; evt = null; }; - })(that) + })(that, type) ); } type = listener = useCapture = s = t = that = null; Property changes on: trunk/sie.js ___________________________________________________________________ Modified: svn:mergeinfo - /branches/04x/040/sie.js:812-829 /branches/04x/041/sie.js:891-923 /branches/04x/042/sie.js:927-967 /branches/04x/043/sie.js:969-1013 /branches/04x/044/sie.js:1015-1067 /branches/04x/045/sie.js:1069-1078 /branches/04x/046/sie.js:1080-1129 /branches/04x/047/sie.js:1131-1164 /branches/04x/048/sie.js:1166-1180 /branches/04x/sie.js:830-1181 /branches/05x/050/sie.js:1183-1201 /branches/05x/051/sie.js:1207-1323 /branches/05x/052/sie.js:1325-1352 /branches/05x/053/sie.js:1354-1400 /branches/05x/054/sie.js:1403-1422 /branches/05x/055/sie.js:1424-1454 /branches/05x/056/sie.js:1456-1491 /branches/05x/057/sie.js:1496-1523 /branches/05x/058/sie.js:1526-1590 /branches/05x/sie.js:1183-1594 /branches/06x/060/sie.js:1603-1850 /branches/06x/sie.js:1599-2355 /branches/07x/sie.js:2357-2748 /branches/08x/sie.js:2750-2943 + /branches/04x/040/sie.js:812-829 /branches/04x/041/sie.js:891-923 /branches/04x/042/sie.js:927-967 /branches/04x/043/sie.js:969-1013 /branches/04x/044/sie.js:1015-1067 /branches/04x/045/sie.js:1069-1078 /branches/04x/046/sie.js:1080-1129 /branches/04x/047/sie.js:1131-1164 /branches/04x/048/sie.js:1166-1180 /branches/04x/sie.js:830-1181 /branches/05x/050/sie.js:1183-1201 /branches/05x/051/sie.js:1207-1323 /branches/05x/052/sie.js:1325-1352 /branches/05x/053/sie.js:1354-1400 /branches/05x/054/sie.js:1403-1422 /branches/05x/055/sie.js:1424-1454 /branches/05x/056/sie.js:1456-1491 /branches/05x/057/sie.js:1496-1523 /branches/05x/058/sie.js:1526-1590 /branches/05x/sie.js:1183-1594 /branches/06x/060/sie.js:1603-1850 /branches/06x/sie.js:1599-2355 /branches/07x/sie.js:2357-2748 /branches/08x/sie.js:2750-2943,2952 From svnnotify @ sourceforge.jp Thu Sep 15 20:24:06 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Thu, 15 Sep 2011 20:24:06 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTU0XSAwLiA4Neatow==?= =?utf-8?b?6KaP54mI44Gu5bGl5q2044KS6L+95Yqg?= Message-ID: <1316085846.931206.2819.nullmailer@users.sourceforge.jp> Revision: 2954 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2954 Author: dhrname Date: 2011-09-15 20:24:06 +0900 (Thu, 15 Sep 2011) Log Message: ----------- 0.85正規版の履歴を追加 Modified Paths: -------------- trunk/ChangeLog.txt Modified: trunk/ChangeLog.txt =================================================================== --- trunk/ChangeLog.txt 2011-09-15 11:23:30 UTC (rev 2953) +++ trunk/ChangeLog.txt 2011-09-15 11:24:06 UTC (rev 2954) @@ -1,4 +1,4 @@ -?2011-9-13 version 0.85beta +?2011-9-19 version 0.85 version 0.84からの変更点 1, addEventListenerメソッドとinitEventメソッドの変数の解放処理を加えた 2, SVGElementの変数とif文の整理をして、軽量化 @@ -9,6 +9,7 @@ 7, 定数の設定を見直して軽量化 8, SVGTextContentElementのプロパティのほとんどをプロトタイプで、初期設定するようにした 9, getStartPositionOfCharメソッドの変数を軽量化のため整理 +10, マウス関連の動的なイベントでクロージャの処理ミスがあったので修正 (beta fixed) 2011-9-7 version 0.84 version 0.83からの変更点 From svnnotify @ sourceforge.jp Sat Sep 17 21:45:45 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sat, 17 Sep 2011 21:45:45 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTU1XSAgU1ZHVGV4dEVs?= =?utf-8?b?ZW1lbnTjga7lrZfoqbDjgoHjgavplqLjgZnjgovmlLnoia8=?= Message-ID: <1316263545.139331.4451.nullmailer@users.sourceforge.jp> Revision: 2955 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2955 Author: dhrname Date: 2011-09-17 21:45:44 +0900 (Sat, 17 Sep 2011) Log Message: ----------- SVGTextElementの字詰めに関する改良 Modified Paths: -------------- branches/08x/086/org/w3c/dom/svg.js Modified: branches/08x/086/org/w3c/dom/svg.js =================================================================== --- branches/08x/086/org/w3c/dom/svg.js 2011-09-15 11:24:06 UTC (rev 2954) +++ branches/08x/086/org/w3c/dom/svg.js 2011-09-17 12:45:44 UTC (rev 2955) @@ -4256,6 +4256,7 @@ sty.marginTop = tar._isYokogaki ? -n-5+ "px" : "-5px"; sty.lineHeight = n+10+ "px"; sty.textDecoration = tedeco; + sty.display = "block"; ttp.appendChild(ti._tars[ij]); sty = p = null; } @@ -4310,11 +4311,14 @@ /*xとy属性が一つの値しか取らないとき、字詰めの処理をすべてブラウザに任せておく。 *以下では、他のdiv要素のテキストをすべて、最初のdiv要素にまとめている */ - var tft = tar.firstChild._tars; + var tft = tar.firstChild._tars, + ttt = tft[0].innerText.charAt(0); //あらかじめ初期化しておく for (var i=1, tli=tft.length;i Revision: 2959 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2959 Author: dhrname Date: 2011-09-19 19:58:59 +0900 (Mon, 19 Sep 2011) Log Message: ----------- Added Paths: ----------- tags/085/ Property changes on: tags/085 ___________________________________________________________________ Added: bugtraq:number + true From svnnotify @ sourceforge.jp Mon Sep 19 20:28:22 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 19 Sep 2011 20:28:22 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTYyXQ==?= Message-ID: <1316431702.101235.13796.nullmailer@users.sourceforge.jp> Revision: 2962 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2962 Author: dhrname Date: 2011-09-19 20:28:22 +0900 (Mon, 19 Sep 2011) Log Message: ----------- Modified Paths: -------------- trunk/index.html Modified: trunk/index.html =================================================================== --- trunk/index.html 2011-09-19 11:00:10 UTC (rev 2961) +++ trunk/index.html 2011-09-19 11:28:22 UTC (rev 2962) @@ -19,7 +19,7 @@

      SIE - SVG形式の画像を表示できるオープンソースのJavaScriptライブラリ

      もっと自由で軽量なスタイルに

      無料ダウンロード

      -

      sie-084.zip (ZIP形式, 436 KB)

      +

      sie-085.zip (ZIP形式, 436 KB)

      あらかじめ、圧縮ファイル(ZIP形式)をダウンロードしてから、解凍してください。sie.jsを手に入れることができます。

      動作環境

      Internet Explorer6.0+、Firefox4+、Opera10.0+、Safari3.0+、Google Chrome3.0+

      From svnnotify @ sourceforge.jp Fri Sep 23 23:38:50 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 23 Sep 2011 23:38:50 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTYzXSAgYeimgee0oA==?= =?utf-8?b?44Gr6Zai44GZ44KL5pS56Imv44KS6ZaL5aeL?= Message-ID: <1316788730.024782.16792.nullmailer@users.sourceforge.jp> Revision: 2963 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2963 Author: dhrname Date: 2011-09-23 23:38:49 +0900 (Fri, 23 Sep 2011) Log Message: ----------- a要素に関する改良を開始 Modified Paths: -------------- branches/08x/086/org/w3c/dom/svg.js Modified: branches/08x/086/org/w3c/dom/svg.js =================================================================== --- branches/08x/086/org/w3c/dom/svg.js 2011-09-19 11:28:22 UTC (rev 2962) +++ branches/08x/086/org/w3c/dom/svg.js 2011-09-23 14:38:49 UTC (rev 2963) @@ -4890,6 +4890,16 @@ tar._tar.setAttribute("target", tar.target.baseVal); tar = void 0; }, false); + this.addEventListener("mouseover", function(evt){ + var tar = evt.target, + taro = tar.ownerDocument._document_; + if (tar.href.baseVal.indexOf(".svg") !== -1) { //もし、リンク先がSVGファイルならば + tar.ownerDocument._window.event.cancelBubble = true; + document.write(""); + document.write(""); + NAIBU._main(); + } + }, false); SVGURIReference.apply(this, arguments); return this; }; From svnnotify @ sourceforge.jp Sat Sep 24 23:23:03 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sat, 24 Sep 2011 23:23:03 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsyOTY0XQ==?= Message-ID: <1316874183.912788.24770.nullmailer@users.sourceforge.jp> Revision: 2964 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2964 Author: dhrname Date: 2011-09-24 23:23:03 +0900 (Sat, 24 Sep 2011) Log Message: ----------- Modified Paths: -------------- trunk/web_site/index.en.html Modified: trunk/web_site/index.en.html =================================================================== --- trunk/web_site/index.en.html 2011-09-23 14:38:49 UTC (rev 2963) +++ trunk/web_site/index.en.html 2011-09-24 14:23:03 UTC (rev 2964) @@ -18,7 +18,7 @@

    SIE

    Download

    -

    sie-084.zip (ZIP 436 KB)

    +

    sie-085.zip (ZIP 437.1 KB)

    Requirements

    Internet Explorer6.0+, Mozilla Firefox4+, Opera10.0+, Safari3.0+ or Google Chrome3.0+

    A HTTP Server Soft (Apache)

    @@ -35,9 +35,9 @@

    License

    MPL 1.1/GPL 2.0/LGPL 2.1

    Goals

    -

    See 「SIE project's goal」.

    +

    See 「SIE project's goal」.

    SourceForge.jp

    -
    © Copyright 2007 dhrname (E-mail: sie-developers @ lists.sourceforge.jp)
    +
    © Copyright 2011 dhrname (E-mail: sie-developers @ lists.sourceforge.jp)