svnno****@sourc*****
svnno****@sourc*****
2011年 8月 18日 (木) 19:07:25 JST
Revision: 2873 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2873 Author: dhrname Date: 2011-08-18 19:07:25 +0900 (Thu, 18 Aug 2011) Log Message: ----------- 0.83 module merged Modified Paths: -------------- branches/08x/org/w3c/core.js branches/08x/org/w3c/dom/css.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:2847-2854 + /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 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:2847-2854 /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/ufltima:1621-1788 Modified: branches/08x/org/w3c/core.js =================================================================== --- branches/08x/org/w3c/core.js 2011-08-16 13:20:42 UTC (rev 2872) +++ branches/08x/org/w3c/core.js 2011-08-18 10:07:25 UTC (rev 2873) @@ -550,7 +550,7 @@ *(getAttributeとsetAttributeは普及しているので機能させる */ /*string*/ Element.prototype.getAttribute = function( /*string*/ name) { - return (this.getAttributeNS("http://www.w3.org/2000/svg", name)); + return (this.getAttributeNS(null, name)); }; /*void*/ Element.prototype.setAttribute = function( /*string*/ name, /*string*/ value) { this.setAttributeNS(null, name, value); 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:2847-2854 /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/ufltima/core.js:1621-1854 Modified: branches/08x/org/w3c/dom/css.js =================================================================== --- branches/08x/org/w3c/dom/css.js 2011-08-16 13:20:42 UTC (rev 2872) +++ branches/08x/org/w3c/dom/css.js 2011-08-18 10:07:25 UTC (rev 2873) @@ -426,7 +426,7 @@ 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に統一) this.cssValueType = CSSValue.CSS_PRIMITIVE_VALUE; this.primitiveType = CSSPrimitiveValue.CSS_UNKNOWN; - this._value = 1; + this._value = null; this._percent = 0; //単位に%が使われていた場合、このプロパティの数値を1%として使う this._empercent = 0; /*void*/ this.setFloatValue = function(/*short*/ unitType, /*float*/ floatValue) { @@ -444,41 +444,45 @@ if ((/*CSSPrimitiveValue.CSS_UNKNOWN*/ 0 >= unitType) && (unitType >= /*CSSPrimitiveValue.CSS_STRING*/ 19)) { //浮動小数点数単位型をサポートしないCSS単位である場合 throw new DOMException(DOMException.INVALID_ACCESS_ERR); } - var tc = this.cssText, - n = tc.charAt(tc.length-1), - type = 0, - s = +(tc.match(this._regd)); - s = isNaN(s) ? 0 : s; - if (n >= "0" && n <= "9") { - type = /*CSSPrimitiveValue.CSS_NUMBER*/ 1; - if (unitType === 1) { - unitType = tc = n = type = null; - return s; + if (this._value || (this._value === 0)) { //すでに、setFloatValueメソッドによって_valueプロパティが設定されていた場合 + return (this._value / this._n[unitType-1]); + } else { + var tc = this.cssText, + n = tc.charAt(tc.length-1), + type = 0, + s = +(tc.match(this._regd)); + s = isNaN(s) ? 0 : s; + if (n >= "0" && n <= "9") { + type = /*CSSPrimitiveValue.CSS_NUMBER*/ 1; + if (unitType === 1) { + unitType = tc = n = type = null; + return s; + } + } else if (n === "%") { + s *= this._percent; + type = /*CSSPrimitiveValue.CSS_PERCENTAGE*/ 2; + } else if ((n === "m") && (tc.charAt(tc.length-2) === "e")) { + s *= this._empercent; + type = /*CSSPrimitiveValue.CSS_EMS*/ 3; + } else if ((n === "x") && (tc.charAt(tc.length-2) === "e")) { + type = /*CSSPrimitiveValue.CSS_EXS*/ 4; + } else if ((n === "x") && (tc.charAt(tc.length-2) === "p")) { + type = /*CSSPrimitiveValue.CSS_PX*/ 5; + } else if ((n === "m") && (tc.charAt(tc.length-2) === "c")) { + type = /*CSSPrimitiveValue.CSS_CM*/ 6; + } else if ((n === "m") && (tc.charAt(tc.length-2) === "m")) { + type = /*CSSPrimitiveValue.CSS_MM*/ 7; + } else if (n === "n") { + type = /*CSSPrimitiveValue.CSS_IN*/ 8; + } else if (n === "t") { + type = /*CSSPrimitiveValue.CSS_PT*/ 9; + } else if (n === "c") { + type = /*CSSPrimitiveValue.CSS_PC*/ 10; } - } else if (n === "%") { - s *= this._percent; - type = /*CSSPrimitiveValue.CSS_PERCENTAGE*/ 2; - } else if ((n === "m") && (tc.charAt(tc.length-2) === "e")) { - s *= this._empercent; - type = /*CSSPrimitiveValue.CSS_EMS*/ 3; - } else if ((n === "x") && (tc.charAt(tc.length-2) === "e")) { - type = /*CSSPrimitiveValue.CSS_EXS*/ 4; - } else if ((n === "x") && (tc.charAt(tc.length-2) === "p")) { - type = /*CSSPrimitiveValue.CSS_PX*/ 5; - } else if ((n === "m") && (tc.charAt(tc.length-2) === "c")) { - type = /*CSSPrimitiveValue.CSS_CM*/ 6; - } else if ((n === "m") && (tc.charAt(tc.length-2) === "m")) { - type = /*CSSPrimitiveValue.CSS_MM*/ 7; - } else if (n === "n") { - type = /*CSSPrimitiveValue.CSS_IN*/ 8; - } else if (n === "t") { - type = /*CSSPrimitiveValue.CSS_PT*/ 9; - } else if (n === "c") { - type = /*CSSPrimitiveValue.CSS_PC*/ 10; + s = s * this._n[type-1] / this._n[unitType-1]; + tc = n = type = unitType = null; + return s; } - this._value = s * this._n[type-1]; //値はあらかじめ、利用しやすいように変換しておく - tc = n = type = s = null; - return (this._value / this._n[unitType-1]); }; /*void*/ this.setStringValue = function(/*short*/ stringType, /*string*/ stringValue) { if (CSSPrimitiveValue.CSS_DIMENSION >= stringType && stringType >= CSSPrimitiveValue.CSS_COUNTER) { //文字列型をサポートしないCSS単位である場合 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:2847-2854 /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/ufltima/dom/css.js:1621-1855 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:2847-2854 /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/ufltima/dom/events.js:1621-1856 Modified: branches/08x/org/w3c/dom/svg.js =================================================================== --- branches/08x/org/w3c/dom/svg.js 2011-08-16 13:20:42 UTC (rev 2872) +++ branches/08x/org/w3c/dom/svg.js 2011-08-18 10:07:25 UTC (rev 2873) @@ -751,9 +751,9 @@ throw new SVGException(SVGException.SVG_INVALID_VALUE_ERR); } } - this.rgbColor.red.cssText = s[0]; - this.rgbColor.green.cssText = s[1]; - this.rgbColor.blue.cssText = s[2]; + this.rgbColor.red.setFloatValue(/*CSSPrimitiveValue.CSS_NUMBER*/ 1, s[0]); + this.rgbColor.green.setFloatValue(1, s[1]); + this.rgbColor.blue.setFloatValue(1, s[2]); rgbColor = s = _parseInt = null; }; @@ -1691,8 +1691,9 @@ */ var dsd = new Date(); var ifr = this._tar.previousSibling, + ifcw = ifr.contentWindow, _doc; - if (ifr.contentWindow) { + if (ifcw) { ifr.contentWindow.screen.updateInterval = 999; _doc = ifr.contentWindow.document; _doc.write(""); @@ -1721,15 +1722,15 @@ sp = _doc.createElement("div"), dcp = _doc.createElement("v:group"), backr = _doc.createElement("v:rect"), - style, fontSize, w, h, sw, sh, trstyle, tpstyle, backrs, viewWidth, viewHeight, - bfl, bft, bl, backright, backdown, text, + style, fontSize, sw, sh, trstyle, tpstyle, backrs, + bfl, bft, bl, text, _parseFloat = parseFloat, ndoc = NAIBU.doc, oba = _doc.createElement("div"); //obaはradialGradient要素で使う oba.setAttribute("id","_NAIBU_outline"); _doc.body.appendChild(oba); sp.style.margin = "-2px,-0px,0px,-2px" - if (ifr.contentWindow) { + if (ifcw) { _doc.body.style.backgroundColor = objei.parentNode.currentStyle.backgroundColor; } s._document_ = _doc; //_document_プロパティはradialGradient要素やNAIBU._setPaintなどで使う @@ -1793,7 +1794,7 @@ dcp.style.height = tview.height+ "px"; dcp.coordsize = tview.width+ " " +tview.height; sp.appendChild(dcp); - if (ifr.contentWindow) { + if (ifcw) { _doc.body.appendChild(sp); } else { this._tar.parentNode.insertBefore(sp, this._tar); @@ -1814,13 +1815,11 @@ tar.y.baseVal._emToUnit(fontSize); tar.width.baseVal._emToUnit(fontSize); tar.height.baseVal._emToUnit(fontSize); - w = tview.width; - h = tview.height; sw = tar.width.baseVal.value; sh = tar.height.baseVal.value; backr.style.position = "absolute"; - backr.style.width = w+ "px"; - backr.style.height = h+ "px"; + backr.style.width = tview.width+ "px"; + backr.style.height = tview.height+ "px"; backr.style.zIndex = -1; backr.stroked = "false"; backr.filled = "false"; @@ -1829,15 +1828,11 @@ tpstyle = objei.style; trstyle.visibility = "visible"; trstyle.position = "absolute"; - /*以下、画像を切り取り*/ trstyle.overflow = "hidden"; backrs = backr.currentStyle; - /*ウィンドウ枠の長さを決定する*/ - viewWidth = w > sw ? sw : w; - viewHeight = h > sh ? sh : h; bfl = _parseFloat(backrs.left); bft = _parseFloat(backrs.top); - bl = -tar._tx; + bl = -tar._tx; //blやbtは、ずれを調整するのに使う bt = -tar._ty; if (bfl !== 0 && !isNaN(bfl)) { //内部の図形にずれが生じたとき(isNaNはIE8でautoがデフォルト値のため) bl = bfl; @@ -1847,9 +1842,6 @@ bt = bft; dcp.style.top = -bt+ "px"; } - 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である。 @@ -1878,14 +1870,14 @@ } } s.defaultView._cache = s.defaultView._cache_ele = null; - oba = _doc = evt = _doc = objei = tar = tview = objw = objh = n = att = sdt = sp = dcp = backr = w = h = sw = sh = style = fontSize = null; - trstyle = tpstyle = backrs = viewWidth = viewHeight = text = texti = i = bfl = bft = bl = bt = backdown = backright = text = _parseFloat = 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; /*IEのメモリリーク対策として、空関数を入力*/ this.xmlhttp.onreadystatechange = NAIBU.emptyFunction; alert(+(new Date()) - dsd.getTime()) if (this._next) { - ifr.contentWindow && (ifr.contentWindow.screen.updateInterval = 0); - ifr = s = null; + ifcw && (ifr.contentWindow.screen.updateInterval = 0); + ifr = ifcw = s = null; this._next._init(); } else { /*全要素の読み込みが終了した場合*/ @@ -1899,7 +1891,7 @@ dbufli = dbuf.length, s, evt; if (dbufli === 0) { - clearInterval(Event._buff); + clearInterval(NAIBU._buff); } else { for (var i=0;i<50;++i) { s = dbuf[n]; @@ -1919,9 +1911,9 @@ } dbuf = n = dbufli = null; }, 1); - ifr = s = null; + ifr = ifcw = s = null; } else { - ifr = s = null; + ifr = ifcw = s = null; NAIBU.Time.start(); } delete NAIBU.doc; @@ -4503,7 +4495,7 @@ /*再度、設定。css.jsのsetPropertyを参照*/ sstyle.setProperty("color", sstyle.getPropertyValue("color")); } - color[i] = "rgb(" +ci.rgbColor.red.cssText+ "," +ci.rgbColor.green.cssText+ "," +ci.rgbColor.blue.cssText+ ")"; + color[i] = "rgb(" +ci.rgbColor.red.getFloatValue(1)+ "," +ci.rgbColor.green.getFloatValue(1)+ "," +ci.rgbColor.blue.getFloatValue(1)+ ")"; colors[i] = stop.offset.baseVal + " " + color[i]; opacity[i] = (sstyle.getPropertyValue("stop-opacity") || 1) * t.getPropertyValue("fill-opacity") * t.getPropertyValue("opacity"); } 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:2847-2854 /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/ufltima/dom/svg.js:1621-1856