svnno****@sourc*****
svnno****@sourc*****
2010年 8月 20日 (金) 20:49:14 JST
Revision: 1977 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1977 Author: dhrname Date: 2010-08-20 20:49:13 +0900 (Fri, 20 Aug 2010) Log Message: ----------- SVGColorオブジェクトの修正と、SVGAnimationElementの修正 Modified Paths: -------------- branches/06x/061/org/w3c/dom/svg.js Modified: branches/06x/061/org/w3c/dom/svg.js =================================================================== --- branches/06x/061/org/w3c/dom/svg.js 2010-08-14 12:04:53 UTC (rev 1976) +++ branches/06x/061/org/w3c/dom/svg.js 2010-08-20 11:49:13 UTC (rev 1977) @@ -588,6 +588,10 @@ r = g = b = null; } else { var s = rgbColor.match(/\d+/g); + if (!!!s) { //数値が含まれていなければ強制的に終了 + rgbColor = null; + return; + } } this.rgbColor.red.cssText = s[0]; this.rgbColor.green.cssText = s[1]; @@ -1194,7 +1198,7 @@ SVGViewSpec.prototype = new SVGFitToViewBox(); function SVGGElement() { - SVGElement.apply(this, arguments); + SVGElement.apply(this); this._tar = document.createElement("v:group"); /*以下の処理は、この子要素ノードがDOMツリーに追加されて初めて、 *描画が開始されることを示す。つまり、appendChildで挿入されない限り、描画をしない。 @@ -4044,7 +4048,11 @@ SVGZoomEvent.prototype = new UIEvent(); function SVGAnimationElement() { - SVGElement.apply(this, arguments); + SVGElement.apply(this); + /*SIEにおけるSVGElementでは、fill属性とStyleSheetを結びつける機構があるため、 + *styleのsetPropertyメソッドを無効化させておく必要がある + */ + this.style.setProperty = function(){}; this._tar = null; /*readonly SVGElement*/ this.targetElement; this._currentTime = 0;