svnno****@sourc*****
svnno****@sourc*****
2011年 4月 10日 (日) 21:55:04 JST
Revision: 2585 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2585 Author: dhrname Date: 2011-04-10 21:55:04 +0900 (Sun, 10 Apr 2011) Log Message: ----------- SVGGradientElementの修正 Modified Paths: -------------- branches/07x/075/org/w3c/dom/svg.js Modified: branches/07x/075/org/w3c/dom/svg.js =================================================================== --- branches/07x/075/org/w3c/dom/svg.js 2011-04-10 12:51:30 UTC (rev 2584) +++ branches/07x/075/org/w3c/dom/svg.js 2011-04-10 12:55:04 UTC (rev 2585) @@ -4330,20 +4330,21 @@ colors = [], opacity = []; if (!ele || !grad) { //まだ、path要素などが設定されていない場合 + 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 = evt.target.ownerDocument.getElementById(RegExp.$1); + grad2 = grad2.ownerDocument.getElementById(RegExp.$1); } else { break; } } stops = grad2.getElementsByTagNameNS("http://www.w3.org/2000/svg", "stop"); if (!stops) { - ele = t = href = grad = grad2 = stops = null; + ele = t = href = grad = grad2 = stops = color = colors = opacity = null; return; } length = stops.length;