svnno****@sourc*****
svnno****@sourc*****
2011年 1月 5日 (水) 23:39:49 JST
Revision: 2276 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2276 Author: dhrname Date: 2011-01-05 23:39:49 +0900 (Wed, 05 Jan 2011) Log Message: ----------- getComputedStyleメソッドの最適化 Modified Paths: -------------- branches/06x/067/org/w3c/dom/css.js Modified: branches/06x/067/org/w3c/dom/css.js =================================================================== --- branches/06x/067/org/w3c/dom/css.js 2011-01-05 13:26:30 UTC (rev 2275) +++ branches/06x/067/org/w3c/dom/css.js 2011-01-05 14:39:49 UTC (rev 2276) @@ -661,7 +661,7 @@ } var q = s._list; if (!!elt.style) { - var estl = elt.style._list, easl = elt._attributeStyle._list; + var estl = elt.style._list, easl = elt._attributeStyle._list, csi = CSSValue.CSS_INHERIT; for (var i=0,eli=estl.length;i<eli;++i) { q[q.length] = estl[i]; } @@ -670,7 +670,7 @@ } estl = easl = null; for (var i=0,qli=q.length;i<qli;++i) { - if (q[i].cssValueType === CSSValue.CSS_INHERIT) { + if (q[i].cssValueType === csi) { q.splice(i, 1); --qli; }