[Sie-announce] SIEコード [3000] SVGTextPostionElementの定数を数値化

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 10月 13日 (木) 23:26:44 JST


Revision: 3000
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=3000
Author:   dhrname
Date:     2011-10-13 23:26:44 +0900 (Thu, 13 Oct 2011)

Log Message:
-----------
SVGTextPostionElementの定数を数値化

Modified Paths:
--------------
    branches/08x/087/org/w3c/dom/svg.js

Modified: branches/08x/087/org/w3c/dom/svg.js
===================================================================
--- branches/08x/087/org/w3c/dom/svg.js	2011-10-13 14:06:22 UTC (rev 2999)
+++ branches/08x/087/org/w3c/dom/svg.js	2011-10-13 14:26:44 UTC (rev 3000)
@@ -4133,33 +4133,33 @@
           n = n[0];
         }
         if (!n) {
-          type = SVGLength.SVG_LENGTHTYPE_NUMBER;
+          type = /*SVGLength.SVG_LENGTHTYPE_NUMBER*/ 1;
         } else if (n === "%") {
           if ((name === "x") || (name === "dx")) {
             tea._percent *= tod.viewport.width;
           } else if ((name === "y") || (name === "dy")) {
             tea._percent *= tod.viewport.height;
           }
-          type = SVGLength.SVG_LENGTHTYPE_PERCENTAGE;
+          type = /*SVGLength.SVG_LENGTHTYPE_PERCENTAGE*/ 2;
         } else if (n === "em") {
           var style = tar.ownerDocument.defaultView.getComputedStyle(tar, null);
           tea._percent *= _parseFloat(style.getPropertyValue("font-size"));
           style = void 0;
-          type = SVGLength.SVG_LENGTHTYPE_EMS;
+          type = /*SVGLength.SVG_LENGTHTYPE_EMS*/ 3;
         } else if (n === "ex") {
-          type = SVGLength.SVG_LENGTHTYPE_EXS;
+          type = /*SVGLength.SVG_LENGTHTYPE_EXS*/ 4;
         } else if (n === "px") {
-          type = SVGLength.SVG_LENGTHTYPE_PX;
+          type = /*SVGLength.SVG_LENGTHTYPE_PX*/ 5;
         } else if (n === "cm") {
-          type = SVGLength.SVG_LENGTHTYPE_CM;
+          type = /*SVGLength.SVG_LENGTHTYPE_CM*/ 6;
         } else if (n === "mm") {
-          type = SVGLength.SVG_LENGTHTYPE_MM;
+          type = /*SVGLength.SVG_LENGTHTYPE_MM*/ 7;
         } else if (n === "in") {
-          type = SVGLength.SVG_LENGTHTYPE_IN;
+          type = /*SVGLength.SVG_LENGTHTYPE_IN*/ 8;
         } else if (n === "pt") {
-          type = SVGLength.SVG_LENGTHTYPE_PT;
+          type = /*SVGLength.SVG_LENGTHTYPE_PT*/ 9;
         } else if (n === "pc") {
-          type = SVGLength.SVG_LENGTHTYPE_PC;
+          type = /*SVGLength.SVG_LENGTHTYPE_PC*/ 10;
         }
         var s = _parseFloat(enr[i]);
         s = isNaN(s) ? 0 : s;




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