svnno****@sourc*****
svnno****@sourc*****
2011年 4月 5日 (火) 21:39:43 JST
Revision: 2556
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2556
Author: dhrname
Date: 2011-04-05 21:39:42 +0900 (Tue, 05 Apr 2011)
Log Message:
-----------
getPropertyCSSValueメソッドに対して最適化
Modified Paths:
--------------
branches/07x/074/org/w3c/dom/css.js
Modified: branches/07x/074/org/w3c/dom/css.js
===================================================================
--- branches/07x/074/org/w3c/dom/css.js 2011-04-05 12:39:06 UTC (rev 2555)
+++ branches/07x/074/org/w3c/dom/css.js 2011-04-05 12:39:42 UTC (rev 2556)
@@ -215,20 +215,20 @@
if (propertyName === ":") { //どんなデータ型でも、文字列に変換する機能をJavaScriptが持つことに注意
return null;
}
- for (var i=0,tli=this._list.length;i<tli;++i) {
- ti = this._list[i];
+ for (var i=0,tl=this._list,tli=tl.length;i<tli;++i) {
+ ti = tl[i];
tc = ti.cssText;
if (tc.indexOf(propertyName) > -1) { //プロパティ名に合致するCSSValueオブジェクトが見つかった場合
- ti._empercents = this._list._fontSize;
- tc = prop = propertyName = null;
+ ti._empercents = tl._fontSize;
+ i = tl = tli = tc = prop = propertyName = null;
return ti;
}
}
if (this._def) {
- tc = propertyName = null;
+ i = tl = tli = tc = propertyName = null;
return (this._def[prop]);
}
- prop = propertyName = null;
+ i = tl = tli = prop = propertyName = null;
return null;
},
/*removePropertyメソッド