[Sie-announce] SIEコード [2813] getFloatValueメソッドの処理を一部、高速化

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 7月 4日 (月) 23:12:20 JST


Revision: 2813
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2813
Author:   dhrname
Date:     2011-07-04 23:12:20 +0900 (Mon, 04 Jul 2011)

Log Message:
-----------
getFloatValueメソッドの処理を一部、高速化

Modified Paths:
--------------
    branches/08x/081/org/w3c/dom/css.js

Modified: branches/08x/081/org/w3c/dom/css.js
===================================================================
--- branches/08x/081/org/w3c/dom/css.js	2011-07-03 14:19:09 UTC (rev 2812)
+++ branches/08x/081/org/w3c/dom/css.js	2011-07-04 14:12:20 UTC (rev 2813)
@@ -451,6 +451,11 @@
     s = isNaN(s) ? 0 : s;
     if (n >= "0" && n <= "9") {
       type = /*CSSPrimitiveValue.CSS_NUMBER*/ 1;
+      if (unitType === 1) {
+        this._value = s;
+        tc = n = type = s = null;
+        return (this._value);
+      }
     } else if (n === "%") {
       s *= this._percent;
       type = /*CSSPrimitiveValue.CSS_PERCENTAGE*/ 2;




Sie-announce メーリングリストの案内
Back to archive index