[Sie-announce] SIEコード [2991] SVGPaintのプロパティや変数を整理

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 10月 10日 (月) 22:48:56 JST


Revision: 2991
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2991
Author:   dhrname
Date:     2011-10-10 22:48:55 +0900 (Mon, 10 Oct 2011)

Log Message:
-----------
SVGPaintのプロパティや変数を整理

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-10 11:02:54 UTC (rev 2990)
+++ branches/08x/087/org/w3c/dom/svg.js	2011-10-10 13:48:55 UTC (rev 2991)
@@ -4428,8 +4428,6 @@
 
 function SVGPaint() { 
   SVGColor.apply(this, arguments);
-  /*readonly unsigned short*/ this.paintType = SVGPaint.SVG_PAINTTYPE_UNKNOWN;
-  /*readonly DOMString*/      this.uri = null;
   return this;
 };
 
@@ -4447,6 +4445,8 @@
   /*unsigned short*/ t.SVG_PAINTTYPE_URI_RGBCOLOR          = 105;
   /*unsigned short*/ t.SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106;
   /*unsigned short*/ t.SVG_PAINTTYPE_URI                   = 107;
+  /*readonly unsigned short*/ t.prototype.paintType = t.SVG_PAINTTYPE_UNKNOWN;
+  /*readonly DOMString*/      t.prototype.uri = null;
 /*void*/ t.prototype.setUri = function(/*DOMString*/ uri ) {
   this.setPaint(SVGPaint.SVG_PAINTTYPE_URI_NONE, uri, null, null);
 };
@@ -4456,8 +4456,8 @@
   }
   this.uri = uri;
   this.paintType = paintType;
-  if (paintType === SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR) {
-    paintType = SVGColor.SVG_COLORTYPE_CURRENTCOLOR;
+  if (paintType === /*SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR*/ 102) {
+    paintType = /*SVGColor.SVG_COLORTYPE_CURRENTCOLOR*/ 3;
   }
   this.setColor(paintType, rgbColor, iccColor); //SVGColorのsetColorメソッドを用いる
 };




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