svnno****@sourc*****
svnno****@sourc*****
2010年 5月 23日 (日) 20:15:30 JST
Revision: 1840 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1840 Author: dhrname Date: 2010-05-23 20:15:30 +0900 (Sun, 23 May 2010) Log Message: ----------- CSSStyleDeclarationとCSSValueとCSSPrimitiveValueの最適化 Modified Paths: -------------- branches/ufltima/dom/css.js Modified: branches/ufltima/dom/css.js =================================================================== --- branches/ufltima/dom/css.js 2010-05-23 10:43:39 UTC (rev 1839) +++ branches/ufltima/dom/css.js 2010-05-23 11:15:30 UTC (rev 1840) @@ -184,8 +184,7 @@ *CSSの宣言ブロックを表現。削除不可。 */ function CSSStyleDeclaration() { - this.cssText = ""; - this.cssText._rewrite = 1; + this.cssText; /*long*/ this.length = 0; /*CSSRule*/ this.parentRule = null; this._list = []; //内部のリスト @@ -302,7 +301,7 @@ }; function CSSValue() { - this.cssText = ""; + this.cssText; this.cssValueType = 0; return this; }; @@ -314,8 +313,8 @@ function CSSPrimitiveValue() { CSSValue.call(this, arguments); - this.cssValueType = CSSValue.CSS_PRIMITIVE_VALUE; - this.primitiveType = CSSPrimitiveValue.CSS_UNKNOWN; + this.cssValueType = 1;//CSSValue.CSS_PRIMITIVE_VALUE; + this.primitiveType = 0;//CSSPrimitiveValue.CSS_UNKNOWN; this._value = 1; return this; };