svnno****@sourc*****
svnno****@sourc*****
2011年 1月 5日 (水) 22:26:30 JST
Revision: 2275 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2275 Author: dhrname Date: 2011-01-05 22:26:30 +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:20:27 UTC (rev 2274) +++ branches/06x/067/org/w3c/dom/css.js 2011-01-05 13:26:30 UTC (rev 2275) @@ -661,12 +661,14 @@ } var q = s._list; if (!!elt.style) { - for (var i=0,eli=elt.style._list.length;i<eli;++i) { - q[q.length] = elt.style._list[i]; + var estl = elt.style._list, easl = elt._attributeStyle._list; + for (var i=0,eli=estl.length;i<eli;++i) { + q[q.length] = estl[i]; } - for (var i=0,eli=elt._attributeStyle._list.length;i<eli;++i) { - q[q.length] = elt._attributeStyle._list[i]; //プレゼンテーション属性を結びつける + for (var i=0,eli=easl.length;i<eli;++i) { + q[q.length] = easl[i]; //プレゼンテーション属性を結びつける } + estl = easl = null; for (var i=0,qli=q.length;i<qli;++i) { if (q[i].cssValueType === CSSValue.CSS_INHERIT) { q.splice(i, 1);