svnno****@sourc*****
svnno****@sourc*****
2010年 6月 2日 (水) 19:48:31 JST
Revision: 1872 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1872 Author: dhrname Date: 2010-06-02 19:48:31 +0900 (Wed, 02 Jun 2010) Log Message: ----------- getPropertyCSSValueメソッドの効率化 Modified Paths: -------------- branches/06x/061/org/w3c/dom/css.js Modified: branches/06x/061/org/w3c/dom/css.js =================================================================== --- branches/06x/061/org/w3c/dom/css.js 2010-06-01 14:40:22 UTC (rev 1871) +++ branches/06x/061/org/w3c/dom/css.js 2010-06-02 10:48:31 UTC (rev 1872) @@ -269,7 +269,12 @@ *プロパティを宣言内で、明示的に設定。継承は無視する */ /*void*/ setProperty : function( /*string*/ propertyName, /*string*/ value, /*string*/ priority) { - var tg = this.getPropertyCSSValue(propertyName), cssText = ""; + var cssText = ""; + if (!!this[propertyName]) { + var tg = this.getPropertyCSSValue(propertyName); + } else { + var tg = null; + } cssText += propertyName; cssText += ":"; cssText += value; @@ -283,6 +288,7 @@ //_numプロパティはremovePropertyメソッドで利用する ti._num = this._list.length; this._list[ti._num] = ti; + this[propertyName] = 1; ++this.length; } cssText = null;