From e23eb60f920161d8ece8009b30a8ed6df5d0e7eb Mon Sep 17 00:00:00 2001 From: dhrname Date: Wed, 20 Jun 2012 23:08:48 +0900 Subject: [PATCH] =?utf8?q?CSSPrimitiveValueType=E3=82=84EventExceptionType?= =?utf8?q?=E3=81=AE=E3=83=9E=E3=82=B8=E3=83=83=E3=82=AF=E3=83=8A=E3=83=B3?= =?utf8?q?=E3=83=90=E3=83=BC=E3=82=92=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88?= =?utf8?q?=E3=81=A7=E4=BB=A3=E6=9B=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- org/w3c/dom/css.js | 20 ++++++++++---------- org/w3c/dom/events.js | 4 ++-- org/w3c/dom/svg.js | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/org/w3c/dom/css.js b/org/w3c/dom/css.js index 5e854e2..b41ea4e 100644 --- a/org/w3c/dom/css.js +++ b/org/w3c/dom/css.js @@ -369,7 +369,7 @@ function CSSPrimitiveValue() { }; (function(t) { -t.CSS_UNKNOWN = 0; +/*t.CSS_UNKNOWN = 0; t.CSS_NUMBER = 1; t.CSS_PERCENTAGE = 2; t.CSS_EMS = 3; @@ -394,7 +394,7 @@ t.CSS_IDENT = 21; t.CSS_ATTR = 22; t.CSS_COUNTER = 23; t.CSS_RECT = 24; -t.CSS_RGBCOLOR = 25; +t.CSS_RGBCOLOR = 25;*/ t.prototype = new CSSValue(); })(CSSPrimitiveValue); @@ -462,31 +462,31 @@ t.prototype = new CSSValue(); } }; /*void*/ this.setStringValue = function(/*short*/ stringType, /*string*/ stringValue) { - if (CSSPrimitiveValue.CSS_DIMENSION >= stringType && stringType >= CSSPrimitiveValue.CSS_COUNTER) { //文字列型をサポートしないCSS単位である場合 + if (/*CSSPrimitiveValue.CSS_DIMENSION*/ 18 >= stringType && stringType >= /*CSSPrimitiveValue.CSS_COUNTER*/ 23) { //文字列型をサポートしないCSS単位である場合 throw new DOMException(/*DOMException.INVALID_ACCESS_ERR*/ 15); } this._value = stringValue; }; /*string*/ this.getStringValue = function(/*short*/ stringType) { - if (CSSPrimitiveValue.CSS_DIMENSION >= stringType && stringType >= CSSPrimitiveValue.CSS_COUNTER) { //文字列型をサポートしないCSS単位である場合 + if (/*CSSPrimitiveValue.CSS_DIMENSION*/ 18 >= stringType && stringType >= /*CSSPrimitiveValue.CSS_COUNTER*/ 23) { //文字列型をサポートしないCSS単位である場合 throw new DOMException(/*DOMException.INVALID_ACCESS_ERR*/ 15); } return (this._value); }; /*Counter*/ this.getCounterValue = function() { - if (this.primitiveType !== CSSPrimitiveValue.CSS_COUNTER) { //Counter型ではないとき + if (this.primitiveType !== /*CSSPrimitiveValue.CSS_COUNTER*/ 23) { //Counter型ではないとき throw new DOMException(/*DOMException.INVALID_ACCESS_ERR*/ 15); } return (new Counter()); }; /*Rect*/ this.getRectValue = function() { - if (this.primitiveType !== CSSPrimitiveValue.CSS_RECT) { //Rect型ではないとき + if (this.primitiveType !== /*CSSPrimitiveValue.CSS_RECT*/ 24) { //Rect型ではないとき throw new DOMException(/*DOMException.INVALID_ACCESS_ERR*/ 15); } return (new Rect()); }; /*RGBColor*/ this.getRGBColorValue = function() { - if (this.primitiveType !== CSSPrimitiveValue.CSS_RGBCOLOR) { //RGBColor型ではないとき + if (this.primitiveType !== /*CSSPrimitiveValue.CSS_RGBCOLOR*/ 25) { //RGBColor型ではないとき throw new DOMException(/*DOMException.INVALID_ACCESS_ERR*/ 15); } var s = new RGBColor(); @@ -505,9 +505,9 @@ t.prototype = new CSSValue(); }); } var n = rgbColor.match(/\d+/g); - s.red.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, parseFloat(n[0])); - s.green.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, parseFloat(n[1])); - s.blue.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, parseFloat(n[2])); + s.red.setFloatValue(/*CSSPrimitiveValue.CSS_NUMBER*/ 1, parseFloat(n[0])); + s.green.setFloatValue(/*CSSPrimitiveValue.CSS_NUMBER*/ 1, parseFloat(n[1])); + s.blue.setFloatValue(/*CSSPrimitiveValue.CSS_NUMBER*/ 1, parseFloat(n[2])); n = rgbColor = void 0; return (s); }; diff --git a/org/w3c/dom/events.js b/org/w3c/dom/events.js index 8ef7081..f704317 100644 --- a/org/w3c/dom/events.js +++ b/org/w3c/dom/events.js @@ -85,7 +85,7 @@ function EventException() { } return this; }; -/*unsigned short*/ EventException.UNSPECIFIED_EVENT_TYPE_ERR = 0; +/*unsigned short EventException.UNSPECIFIED_EVENT_TYPE_ERR = 0;*/ EventException.prototype = new DOMException(); @@ -125,7 +125,7 @@ EventException.prototype = new DOMException(); }; /*boolean*/ Node.prototype.dispatchEvent = function( /*Event*/ evt) { if (!evt.type) { //Eventの型が設定されていないとき - throw new EventException(EventException.UNSPECIFIED_EVENT_TYPE_ERR); + throw new EventException(/*EventException.UNSPECIFIED_EVENT_TYPE_ERR*/ 0); } var te = this, td = te.ownerDocument, diff --git a/org/w3c/dom/svg.js b/org/w3c/dom/svg.js index 2e68bdc..e6c4e44 100644 --- a/org/w3c/dom/svg.js +++ b/org/w3c/dom/svg.js @@ -2623,7 +2623,7 @@ NAIBU._setPaint = function(tar, matrix) { w = tod.documentElement.viewport.width; h = tod.documentElement.viewport.height; sgsw._percent = _math.sqrt((w*w + h*h) / 2); - swx = sgsw.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) * _math.sqrt(_math.abs(matrix._determinant())); + swx = sgsw.getFloatValue(/*CSSPrimitiveValue.CSS_NUMBER*/ 1) * _math.sqrt(_math.abs(matrix._determinant())); strokeElement.setAttribute("weight", swx + "px"); sgsw = w = h = void 0; if (!stroke.uri) { @@ -6219,7 +6219,7 @@ function SVGAnimateColorElement() { var fc = _tar._valueList[ii].rgbColor, tc = _tar._valueList[ii+1].rgbColor, durd = (tg-ti*d) / di, - num = CSSPrimitiveValue.CSS_NUMBER, + num = /*CSSPrimitiveValue.CSS_NUMBER*/ 1, fr = fc.red.getFloatValue(num), fg = fc.green.getFloatValue(num), fb = fc.blue.getFloatValue(num), -- 2.11.0