svnno****@sourc*****
svnno****@sourc*****
2011年 5月 31日 (火) 20:47:05 JST
Revision: 2726 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2726 Author: dhrname Date: 2011-05-31 20:47:05 +0900 (Tue, 31 May 2011) Log Message: ----------- チケット #25336 「cursorプロパティの動作不良」を修正 Ticket Links: :----------- http://sourceforge.jp/projects/sie/tracker/detail/25336 Modified Paths: -------------- branches/07x/078/org/w3c/dom/svg.js Modified: branches/07x/078/org/w3c/dom/svg.js =================================================================== --- branches/07x/078/org/w3c/dom/svg.js 2011-05-31 11:21:49 UTC (rev 2725) +++ branches/07x/078/org/w3c/dom/svg.js 2011-05-31 11:47:05 UTC (rev 2726) @@ -2584,16 +2584,18 @@ } cursor = style.getPropertyCSSValue("cursor"); if (cursor && !cursor._isDefault) { //初期値でないならば - el.style.cursor = cursor; + var tc = cursor.cssText; + el.style.cursor = tc.substring(tc.indexOf(":")+1, tc.length); + tc = null; } vis = style.getPropertyCSSValue("visibility"); if (vis && !vis._isDefault) { - el.style.visibility = vis; + el.style.visibility = vis.cssText.substring(vis.cssText.indexOf(":")+1, vis.cssText.length); } disp = style.getPropertyCSSValue("display"); - if (disp && !disp._isDefault && (disp === "none")) { + if (disp && !disp._isDefault && (disp.cssText.indexOf("none") > -1)) { el.style.display = "none"; - } else if (disp && !disp._isDefault && (disp !== "inline-block")) { + } else if (disp && !disp._isDefault && (disp.indexOf("inline-block") === -1)) { el.style.display = "inline-block"; } tod = el = fill = stroke = sp = fp = style = cursor = tar = matrix = vis = disp = num = null;