svnno****@sourc*****
svnno****@sourc*****
2011年 8月 9日 (火) 20:49:12 JST
Revision: 2852 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2852 Author: dhrname Date: 2011-08-09 20:49:12 +0900 (Tue, 09 Aug 2011) Log Message: ----------- text、tspan要素でvisibilityとdipslayプロパティが正常に動かなくなるバグを修正 Modified Paths: -------------- branches/08x/083/org/w3c/dom/svg.js Modified: branches/08x/083/org/w3c/dom/svg.js =================================================================== --- branches/08x/083/org/w3c/dom/svg.js 2011-08-09 11:44:52 UTC (rev 2851) +++ branches/08x/083/org/w3c/dom/svg.js 2011-08-09 11:49:12 UTC (rev 2852) @@ -4242,26 +4242,27 @@ var color = style.getPropertyValue("fill"), cursor = style.getPropertyCSSValue("cursor"), vis = style.getPropertyCSSValue("visibility"), - disp = style.getPropertyCSSValue("display"); + disp = style.getPropertyCSSValue("display"), + tts = tar._tar.style; if (color === "none"){ - tar._tar.style.color = "transparent"; + tts.color = "transparent"; } else if (color.indexOf("url") === -1) { - tar._tar.style.color = color; + tts.color = color; } else { - tar._tar.style.color = "black"; + tts.color = "black"; } if (cursor && !cursor._isDefault) { //初期値でないならば var tc = cursor.cssText; - el.style.cursor = tc.substring(tc.indexOf(":")+1, tc.length); + tts.cursor = tc.substring(tc.indexOf(":")+1, tc.length); tc = null; } if (vis && !vis._isDefault) { - el.style.visibility = vis.cssText.substring(vis.cssText.indexOf(":")+1, vis.cssText.length); + tts.visibility = vis.cssText.substring(vis.cssText.indexOf(":")+1, vis.cssText.length); } if (disp && !disp._isDefault && (disp.cssText.indexOf("none") > -1)) { - el.style.display = "none"; + tts.display = "none"; } else if (disp && !disp._isDefault) { - el.style.display = "block"; + tts.display = "block"; } var isRect = true; if (ttp.lastChild) {