svnno****@sourc*****
svnno****@sourc*****
2010年 11月 23日 (火) 23:10:31 JST
Revision: 2169 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2169 Author: dhrname Date: 2010-11-23 23:10:31 +0900 (Tue, 23 Nov 2010) Log Message: ----------- getOverrideStyleメソッドの修正 Modified Paths: -------------- branches/06x/064/org/w3c/dom/css.js Modified: branches/06x/064/org/w3c/dom/css.js =================================================================== --- branches/06x/064/org/w3c/dom/css.js 2010-11-23 14:10:15 UTC (rev 2168) +++ branches/06x/064/org/w3c/dom/css.js 2010-11-23 14:10:31 UTC (rev 2169) @@ -702,6 +702,22 @@ var style = this.defaultView.getComputedStyle(tar, "") s.setProperty = function(propertyName, value, priority) { var tar = elt, el = tar._tar, isFill = isStroke = false; + if (tar.localName === "g") { + var sl = tar.getElementsByTagNameNS("http://www.w3.org/2000/svg", "*"); + if (sl) { + for (var i=0,sli=sl.length;i<sli;++i) { + var di = sl[i]; + NAIBU._setPaint(di, di.getScreenCTM()); + di = null; + } + sl = null; + } + el = null; + } + if (!el) { + setProp.call(s, propertyName, value, priority); + return; + } if (!!!tar._fillElement) { tar._fillElement = document.createElement("v:fill"); //キャッシュを作る } else { @@ -716,7 +732,6 @@ el.removeChild(tar._strokeElement); isStroke = true; } - var fillElement = tar._fillElement, strokeElement = tar._strokeElement; setProp.call(s, propertyName, value, priority); if (propertyName === "fill-opacity") {