From: dhrname Date: Fri, 24 Oct 2014 13:50:19 +0000 (+0900) Subject: すべてのモジュールのupメソッドに対して、引数が省略できるところは可能な限り省略した X-Git-Tag: version22~396^2~29 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2bcfec6e80142a624b6770fa103490e4ca502463;p=sie%2Fsie.git すべてのモジュールのupメソッドに対して、引数が省略できるところは可能な限り省略した --- diff --git a/org/w3c/core.js b/org/w3c/core.js index 416a533..e457388 100644 --- a/org/w3c/core.js +++ b/org/w3c/core.js @@ -194,7 +194,7 @@ base("DOMImplementation").mix( { *ドキュメントタイプを作るためのもの。DTDはで表現されうる。 */ /*DocumentType*/ createDocumentType : function(/*string*/ qualifiedName, publicId, systemId) { - var s = base("$document").up("$1"); + var s = base("$document").up(); s.name = ""; s.entities = new NamedNodeMap(); //パラメタ実体を除く実体の集まり s.notations = new NamedNodeMap(); //DTDで示した記法の集まり @@ -210,7 +210,7 @@ base("DOMImplementation").mix( { */ /*Document*/ createDocument : function( /*string*/ ns, qname, /*DocumentType*/ doctype) { try { - var s = base("$document").up("$1"); + var s = base("$document").up(); this._doc_ && (s._document_ = this._doc_); //_document_プロパティはcreateElementNSメソッドやradialGradient要素やNAIBU._setPaintなどで使う s.implementation = this; s.doctype = doctype || null; @@ -454,7 +454,7 @@ base("$document").mix( { *テキストのノードを作る */ /*Text*/ createTextNode : function( /*string*/ data) { - var s = this.$text.up("$1"); + var s = this.$text.up(); s.data = s.nodeValue = data+""; s.length = data.length; s.ownerDocument = this; @@ -464,7 +464,7 @@ base("$document").mix( { *コメントノードを作る */ /*Comment*/ createComment : function( /*string*/ data) { - var s = this.$text.$comment.up("$1"); + var s = this.$text.$comment.up(); s.data = s.nodeValue = data; s.length = data.length; s.ownerDocument = this; @@ -474,7 +474,7 @@ base("$document").mix( { *CDATA領域ノードを作る */ /*CDATASection*/ createCDATASection : function( /*string*/ data) { - var s = this.$text.up("$1"); + var s = this.$text.up(); s.nodeType = /*Node.CDATA_SECTION_NODE*/ 4; s.nodeName = "#cdata-section"; s.data = s.nodeValue = data; @@ -486,7 +486,7 @@ base("$document").mix( { *処理命令ノードを作る */ /*ProcessingInstruction*/ createProcessingInstruction : function( /*string*/ target, /*string*/ data) { - var s = this.up("$1"); + var s = this.up(); s.nodeType = /*Node.PROCESSING_INSTRUCTION_NODE*/ 7; s.target = s.nodeName = target; s.data = s.nodeValue = data; @@ -503,7 +503,7 @@ base("$document").mix( { *実体参照ノードを作る */ /*EntityReference*/ createEntityReference : function( /*string*/ name) { - return this.up("$1").mix({ + return this.up().mix({ nodeValue: null, nodeType: /*Node.ENTITY_REFERENCE_NODE*/ 5, nodeName: name, @@ -578,14 +578,14 @@ base("$document").mix( { } } } else if (imn === /*Node.ENTITY_NODE*/ 6) { - s = this.$enetity.up("$1"); + s = this.$enetity.up(); s.publicId = importedNode.publicId; s.systemId = importedNode.systemId; s.notationName = importedNode.notationName; } else if (imn === /*Node.PROCESSING_INSTRUCTION_NODE*/ 7) { s = this.createProcessingInstruction(importedNode.nodeName, importedNode.nodeValue); } else if (imn === /*Node.NOTATION_NODE*/ 12) { - s = this.up("$notation").up("$1"); + s = this.up("$notation").up(); s.publicId = importedNode.publicId; s.systemId = importedNode.systemId; } else { @@ -612,9 +612,9 @@ base("$document").mix( { } else { localName = qualifiedName; } - ele = this.$element.up("$1").mix({ + ele = this.$element.up().mix({ childNodes: [], - attributes: this.$element.attributes.up("$1"), //属性を収納 + attributes: this.$element.attributes.up(), //属性を収納 ownerDocument: this }); ele.namespaceURI = namespaceURI; @@ -628,7 +628,7 @@ base("$document").mix( { *属性ノードを作る。setAttributeNSで使うため、削除不可 */ /*Attr*/ createAttributeNS : function( /*string*/ namespaceURI, /*string*/ qualifiedName) { - var attr = this.$attr.up("$1"), + var attr = this.$attr.up(), p; attr.namespaceURI = namespaceURI; attr.nodeName = attr.name = qualifiedName; diff --git a/org/w3c/dom/css.js b/org/w3c/dom/css.js index 708c754..32259f8 100644 --- a/org/w3c/dom/css.js +++ b/org/w3c/dom/css.js @@ -110,7 +110,7 @@ base("$CSSStyleRule").mix( { } ).mix( function() { this.up("$CSSMediaRule").mix( { type: /*CSSRule.MEDIA_RULE*/ 4, - /*stylesheets::MediaList*/ media: (base("$StyleSheet").$MediaList.up("$1")), + /*stylesheets::MediaList*/ media: (base("$StyleSheet").$MediaList.up()), /*CSSRuleList*/ cssRules: [], /*long*/ insertRule: function( /*string*/ rule, /*long*/ index) { @@ -136,7 +136,7 @@ base("$CSSStyleRule").mix( { this.up("$CSSImportRule").mix( { type: /*CSSRule.IMPORT_RULE*/ 3, href: "", - /*stylesheets::MediaList*/ media: base("$StyleSheet").$MediaList.up("$1"), + /*stylesheets::MediaList*/ media: base("$StyleSheet").$MediaList.up(), /*CSSStyleSheet*/ styleSheet: null } ); @@ -153,7 +153,7 @@ base("$CSSStyleRule").mix( { */ base("$CSSStyleDeclaration").mix( { _new$: function() { - var s = this.up("$1"); + var s = this.up(); s._list = []; //内部のリスト s._list._fontSize = s._list._opacity = null; return s; @@ -277,7 +277,7 @@ base("$CSSStyleDeclaration").mix( { ti.setRGBColor(value); } } else { - ti = tg ? tg : base("$CSSValue").$CSSPrimitiveValue.up("$1"); + ti = tg ? tg : base("$CSSValue").$CSSPrimitiveValue.up(); } ti._priority = priority; ti.cssText = cssText; @@ -497,19 +497,19 @@ t.CSS_RGBCOLOR = 25;*/ function RGBColor() { var cs = base("$CSSValue").$CSSPrimitiveValue; - this.red = cs.up("$1"); - this.green = cs.up("$1"); - this.blue = cs.up("$1"); + this.red = cs.up(); + this.green = cs.up(); + this.blue = cs.up(); cs = void 0; this.red.primitiveType = this.green.primitiveType = this.blue.primitiveType = /*CSSPrimitiveValue.CSS_NUMBER*/ 1; }; function Rect() { var cs = base("$CSSValue").$CSSPrimitiveValue; - this.top = cs.up("$1"); - this.right = cs.up("$1"); - this.bottom = cs.up("$1"); - this.left = cs.up("$1"); + this.top = cs.up(); + this.right = cs.up(); + this.bottom = cs.up(); + this.left = cs.up(); cs = void 0; }; @@ -778,7 +778,7 @@ base("$document").mix( base("$StyleSheet").DocumentStyle); /*CSSStyleSheet*/ base("DOMImplementation").createCSSStyleSheet = function( /*string*/ title, /*string*/ media) { var s = base("$StyleSheet").up("$CSSStyleSheet")._create(); s.title = title; - var nm = s.$MediaList.up("$1"); + var nm = s.$MediaList.up(); nm.mediaText = media; if (media && (media !== "")) { var mes = media.split(","); //文字列をコンマで区切って配列に diff --git a/org/w3c/dom/events.js b/org/w3c/dom/events.js index 586398e..19e46fe 100644 --- a/org/w3c/dom/events.js +++ b/org/w3c/dom/events.js @@ -95,7 +95,7 @@ EventException.prototype = Object._create(DOMException); base("$document").mix(function() { /*void*/ this.addEventListener = function( /*string*/ type, /*EventListener*/ listener, /*boolean*/ useCapture) { this.removeEventListener(type, listener, useCapture); //いったん、(あれば)リスナーを離す。 - var s = base("EventListener").up("$1").initialize(useCapture, type, listener), //リスナーを作成 + var s = base("EventListener").up().initialize(useCapture, type, listener), //リスナーを作成 t = type.charAt(0), that; this._capter.push(s); //このノードにリスナーを登録しておく @@ -273,7 +273,7 @@ function DocumentEvent() { /*__$eventプロパティはcreateEventを高速化するために、前もって設定しておいたもの*/ __$event: base("$event"), createEvent: function( /*string*/ eventType) { - var evt = ( this.__$event[eventType] || this.__$event).up("$1"); + var evt = ( this.__$event[eventType] || this.__$event).up(); evt.initialize && evt.initialize(); evt.type = eventType; evt.timeStamp = +(new Date()); diff --git a/org/w3c/dom/stylesheet.js b/org/w3c/dom/stylesheet.js index 5c09d7a..47dd544 100644 --- a/org/w3c/dom/stylesheet.js +++ b/org/w3c/dom/stylesheet.js @@ -86,7 +86,7 @@ base("$StyleSheet").mix( { title: "" } ) .on( "_create", function() { - /*MediaList*/ this.media = this.$MediaList.up("$1"); + /*MediaList*/ this.media = this.$MediaList.up(); } ) .mix( function(_) { @@ -121,7 +121,7 @@ _.up("$MediaList").mix( { } ); _.LinkStyle = function() { - /*StyleSheet*/ this.sheet = _.up("$1"); + /*StyleSheet*/ this.sheet = _.up(); }; _.DocumentStyle = function() { diff --git a/org/w3c/dom/svg.js b/org/w3c/dom/svg.js index 145ffe0..519d963 100644 --- a/org/w3c/dom/svg.js +++ b/org/w3c/dom/svg.js @@ -359,7 +359,7 @@ base("$document").$element.up("$svgelement").mix( { /*interface SVGLocatable*/ /*SVGRect*/ getBBox: function(){ - var s = base("$SVGRect").up("$1"), + var s = base("$SVGRect").up(), data = this._tar.path.value, vi = this.ownerDocument.documentElement.viewport, el = vi.width, @@ -526,7 +526,7 @@ base("$SVGNumber") /*SVGUnmberListのメソッドはSVGStringListを参照*/ function SVGAnimatedNumberList() { - /*readonly SVGNumberList*/ this.animVal = this.baseVal = base("$SVGStringList").$SVGNumberList.up("$1"); + /*readonly SVGNumberList*/ this.animVal = this.baseVal = base("$SVGStringList").$SVGNumberList.up(); }; /*$SVGLengthオブジェクト *長さを設定する(単位pxに統一する方便として使う) @@ -628,14 +628,14 @@ base("$SVGLength").mix( { } ); function SVGAnimatedLength() { /*readonly SVGLength*/ this.animVal; - this.baseVal = base("$SVGLength").up("$1"); + this.baseVal = base("$SVGLength").up(); this.baseVal.unitType = 1; }; /*SVGLengthListのメソッドはSVGStringListを参照*/ function SVGAnimatedLengthList() { - /*readonly SVGLengthList*/ this.animVal = this.baseVal = base("$SVGStringList").$SVGLengthList.up("$1");; + /*readonly SVGLengthList*/ this.animVal = this.baseVal = base("$SVGStringList").$SVGLengthList.up();; }; base("$SVGAngle").mix( { @@ -687,13 +687,13 @@ base("$SVGAngle").mix( { /*const unsigned short SVGAngle.SVG_ANGLETYPE_RAD = 3; /*const unsigned short SVGAngle.SVG_ANGLETYPE_GRAD = 4;*/ function SVGAnimatedAngle() { - /*readonly attribute SVGAngle*/ this.baseVal = base("$SVGAngle").up("$1"); - /*readonly attribute SVGAngle*/ this.animVal = base("$SVGAngle").up("$1"); + /*readonly attribute SVGAngle*/ this.baseVal = base("$SVGAngle").up(); + /*readonly attribute SVGAngle*/ this.animVal = base("$SVGAngle").up(); }; base("$CSSValue").up("$SVGColor").mix( { _new$: function() { - /*readonly css::RGBColor*/ this.up("$1").rgbColor = new RGBColor(); + /*readonly css::RGBColor*/ this.up().rgbColor = new RGBColor(); return this.$1; }, // Color Types @@ -928,8 +928,8 @@ base("$SVGRect").mix( { } ); function SVGAnimatedRect() { - /*readonly SVGRect*/ this.baseVal = base("$SVGRect").up("$1"); -/*readonly SVGRect*/ this.animVal = base("$SVGRect").up("$1"); + /*readonly SVGRect*/ this.baseVal = base("$SVGRect").up(); +/*readonly SVGRect*/ this.animVal = base("$SVGRect").up(); }; /*SVGUnitTypes = { @@ -939,7 +939,7 @@ function SVGAnimatedRect() { /*unsigned short SVG_UNIT_TYPE_OBJECTBOUNDINGBOX : 2 };*/ function SVGStylable() { - /*readonly attribute SVGAnimatedString*/ this.className = base("$SVGAnimatedString").up("$1"); + /*readonly attribute SVGAnimatedString*/ this.className = base("$SVGAnimatedString").up(); ElementCSSInlineStyle.call(this); }; /*getPresentationAttributeメソッド @@ -958,7 +958,7 @@ function SVGStylable() { *SIEでは、もっぱらXLink言語の処理を行う */ function SVGURIReference() { - /*readonly SVGAnimatedString*/ this.href = base("$SVGAnimatedString").up("$1"); + /*readonly SVGAnimatedString*/ this.href = base("$SVGAnimatedString").up(); this._instance = null; //埋め込みの場合に、読み込んだDOMツリーを結び付けておくプロパティ this._text = ""; this.addEventListener("DOMAttrModified", function(evt){ @@ -1389,27 +1389,27 @@ base("$document").$element.$svgelement.up("http://www.w3.org/2000/svgsvg").on("i this._currentTime = seconds; }, /*SVGNumber*/ createSVGNumber: function(){ - return base("$SVGNumber").up("$1"); + return base("$SVGNumber").up(); }, /*SVGAngle*/ createSVGAngle: function(){ - var s = base("$SVGAngle").up("$1"); + var s = base("$SVGAngle").up(); s.unitType = 1; return s; }, /*SVGLength*/ createSVGLength: function(){ - var s = base("$SVGLength").up("$1"); + var s = base("$SVGLength").up(); s.unitType = /*SVG_LENGTHTYPE_NUMBER*/ 1; return s; }, /*SVGPoint*/ createSVGPoint: function(){ - return base("$SVGPoint").up("$1"); + return base("$SVGPoint").up(); }, /*SVGMatrix*/ createSVGMatrix: function(){ //単位行列を作成 - return base("$SVGMatrix").up("$1"); + return base("$SVGMatrix").up(); }, /*SVGRect*/ createSVGRect: function(){ - return base("$SVGRect").up("$1"); + return base("$SVGRect").up(); }, /*SVGTransform*/ createSVGTransform: function(){ var s = this.createSVGTransformFromMatrix(this.createSVGMatrix()); @@ -1522,7 +1522,7 @@ function SVGFitToViewBox() { }; function SVGViewSpec(ele) { SVGFitToViewBox.call(this, ele); - /*readonly SVGTransformList*/ this.transform = base("$SVGStringList").$SVGTransformList.up("$1"); + /*readonly SVGTransformList*/ this.transform = base("$SVGStringList").$SVGTransformList.up(); /*readonly SVGElement*/ this.viewTarget = ele; /*readonly DOMString*/ this.viewBoxString = this.preserveAspectRatioString = this.transformString = this.viewTargetString = ""; }; @@ -1586,8 +1586,8 @@ function SVGUseElement() { /*readonly SVGAnimatedLength*/ this.width = new slen(); /*readonly SVGAnimatedLength*/ this.height = new slen(); slen = void 0; - /*readonly SVGElementInstance*/ this.instanceRoot = this.up("$1"); //参照先インスタンスのルート - /*readonly SVGElementInstance*/ this.animatedInstanceRoot = this.up("$1");//アニメの最中のインスタンス。静止中は通常 + /*readonly SVGElementInstance*/ this.instanceRoot = this.up(); //参照先インスタンスのルート + /*readonly SVGElementInstance*/ this.animatedInstanceRoot = this.up();//アニメの最中のインスタンス。静止中は通常 this.addEventListener("DOMNodeInserted", function(evt){ if (evt.eventPhase === /*Event.BUBBLING_PHASE*/ 3) { return; //強制終了させる @@ -2117,7 +2117,7 @@ base("$SVGPoint").mix( { if (!isFinite(matrix.a) || !isFinite(matrix.b) || !isFinite(matrix.c) || !isFinite(matrix.d) || !isFinite(matrix.e) || !isFinite(matrix.f)) { throw (new Error("Type Error: 引数の値がNumber型ではありません")); } - var s = base("$SVGPoint").up("$1"); + var s = base("$SVGPoint").up(); s.x = matrix.a * this.x + matrix.c * this.y + matrix.e; s.y = matrix.b * this.x + matrix.d * this.y + matrix.f; return s; @@ -2144,7 +2144,7 @@ base("$SVGMatrix").mix( { *行列の積を求めて返す */ /*SVGMatrix*/ multiply : function(/*SVGMatrix*/ secondMatrix ) { - var s = this.$SVGMatrix.up("$1"), + var s = this.$SVGMatrix.up(), m = secondMatrix, isf = isFinite, t = this; @@ -2164,7 +2164,7 @@ base("$SVGMatrix").mix( { *逆行列を返す */ /*SVGMatrix*/ inverse : function() { - var s = this.$SVGMatrix.up("$1"), + var s = this.$SVGMatrix.up(), n = this._determinant(); if (n !== 0) { s.a = this.d / n; @@ -2179,7 +2179,7 @@ base("$SVGMatrix").mix( { } }, /*SVGMatrix*/ translate : function(/*float*/ x, /*float*/ y ) { - var m = this.$SVGMatrix.up("$1"); + var m = this.$SVGMatrix.up(); m.e = x; m.f = y; var s = this.multiply(m); @@ -2187,7 +2187,7 @@ base("$SVGMatrix").mix( { return s; }, /*SVGMatrix*/ scale : function(/*float*/ scaleFactor ) { - var m = this.$SVGMatrix.up("$1"); + var m = this.$SVGMatrix.up(); m.a = scaleFactor; m.d = scaleFactor; var s = this.multiply(m); @@ -2195,7 +2195,7 @@ base("$SVGMatrix").mix( { return s; }, /*SVGMatrix*/ scaleNonUniform : function(/*float*/ scaleFactorX, /*float*/ scaleFactorY ) { - var m = this.$SVGMatrix.up("$1"); + var m = this.$SVGMatrix.up(); m.a = scaleFactorX; m.d = scaleFactorY; var s = this.multiply(m); @@ -2203,7 +2203,7 @@ base("$SVGMatrix").mix( { return s; }, /*SVGMatrix*/ rotate : function(/*float*/ angle ) { - var m = this.$SVGMatrix.up("$1"), rad = angle / 180 * Math.PI; //ラジアン変換 + var m = this.$SVGMatrix.up(), rad = angle / 180 * Math.PI; //ラジアン変換 m.a = Math.cos(rad); m.b = Math.sin(rad); m.c = -m.b; @@ -2217,7 +2217,7 @@ base("$SVGMatrix").mix( { if ((x === 0) || (y === 0) || !isFinite(x) || !isFinite(y)) { throw (new SVGException(/*SVGException.SVG_INVALID_VALUE_ERR*/ 1)); } - var m = this.$SVGMatrix.up("$1"), rad = Math.atan2(y, x); + var m = this.$SVGMatrix.up(), rad = Math.atan2(y, x); m.a = Math.cos(rad); m.b = Math.sin(rad); m.c = -m.b; @@ -2227,28 +2227,28 @@ base("$SVGMatrix").mix( { return s; }, /*SVGMatrix*/ flipX : function() { - var m = this.$SVGMatrix.up("$1"); + var m = this.$SVGMatrix.up(); m.a = -m.a; var s = this.multiply(m); m = void 0; return s; }, /*SVGMatrix*/ flipY : function() { - var m = this.$SVGMatrix.up("$1"); + var m = this.$SVGMatrix.up(); m.d = -m.d; var s = this.multiply(m); m = void 0; return s; }, /*SVGMatrix*/ skewX : function(/*float*/ angle ){ - var m = this.$SVGMatrix.up("$1"), rad = angle / 180 * Math.PI; //ラジアン変換 + var m = this.$SVGMatrix.up(), rad = angle / 180 * Math.PI; //ラジアン変換 m.c = Math.tan(rad); var s = this.multiply(m); m = void 0; return s; }, /*SVGMatrix*/ skewY : function(/*float*/ angle ){ - var m = this.$SVGMatrix.up("$1"), rad = angle / 180 * Math.PI; + var m = this.$SVGMatrix.up(), rad = angle / 180 * Math.PI; m.b = Math.tan(rad); var s = this.multiply(m); m = void 0; @@ -2261,7 +2261,7 @@ base("$SVGMatrix").mix( { } ); function SVGTransform() { - /*readonly SVGMatrix*/ this.matrix = base("$SVGMatrix").up("$1"); + /*readonly SVGMatrix*/ this.matrix = base("$SVGMatrix").up(); }; // Transform Types /*unsigned short*/ SVGTransform.SVG_TRANSFORM_UNKNOWN = 0; @@ -2278,7 +2278,7 @@ SVGTransform.prototype = { /*readonly float*/ angle : 0, /*void*/ setMatrix : function(/*SVGMatrix*/ matrix ) { this.type = /*SVGTransform.SVG_TRANSFORM_MATRIX*/ 1; - var mat = this._matrix.up("$1"); + var mat = this._matrix.up(); mat.a = matrix.a; mat.b = matrix.b; mat.c = matrix.c; @@ -2353,7 +2353,7 @@ base("$SVGStringList").$SVGTransformList.mix( { } ); function SVGAnimatedTransformList() { - /*readonly SVGTransformList*/ this.animVal = this.baseVal = base("$SVGStringList").$SVGTransformList.up("$1"); + /*readonly SVGTransformList*/ this.animVal = this.baseVal = base("$SVGStringList").$SVGTransformList.up(); }; base("SVGPreserveAspectRatio").mix( { @@ -2380,7 +2380,7 @@ base("SVGPreserveAspectRatio").mix( { })(base("SVGPreserveAspectRatio"));*/ function SVGAnimatedPreserveAspectRatio() { - /*readonly SVGPreserveAspectRatio*/ this.animVal = this.baseVal = base("SVGPreserveAspectRatio").up("$1"); + /*readonly SVGPreserveAspectRatio*/ this.animVal = this.baseVal = base("SVGPreserveAspectRatio").up(); }; function SVGPathSeg() { @@ -2708,12 +2708,12 @@ function SVGPathElement(_doc) { this._tar = _doc.createElement("v:shape"); //interface SVGAnimatedPathData var sp = base("$SVGStringList").$SVGPathSegList; - /*readonly SVGPathSegList*/ this.pathSegList = sp.up("$1"); + /*readonly SVGPathSegList*/ this.pathSegList = sp.up(); this.animatedPathSegList = this.pathSegList; - /*readonly SVGPathSegList*/ this.normalizedPathSegList = sp.up("$1"); + /*readonly SVGPathSegList*/ this.normalizedPathSegList = sp.up(); sp = _doc = void 0; this.animatedNormalizedPathSegList = this.normalizedPathSegList; - /*readonly SVGAnimatedNumber*/ this.pathLength = base("$SVGAnimatedNumber").up("$1"); + /*readonly SVGAnimatedNumber*/ this.pathLength = base("$SVGAnimatedNumber").up(); //以下は、d属性に変更があった場合の処理 this.addEventListener("DOMAttrModified", this._attrModi, false); /*以下の処理は、このpath要素ノードがDOMツリーに追加されて初めて、 @@ -3752,7 +3752,7 @@ NAIBU._GenericSVGPolyElement = function (_doc, xclose) { this._tar = _doc.createElement("v:shape"); _doc = void 0; //interface SVGAnimatedPoints - /*readonly SVGPointList*/ this.animatedPoints = this.points = base("$SVGStringList").$SVGPointList.up("$1");; + /*readonly SVGPointList*/ this.animatedPoints = this.points = base("$SVGStringList").$SVGPointList.up();; this.addEventListener("DOMAttrModified", function(evt){ var tar = evt.target; if (evt.attrName === "points") { @@ -3820,7 +3820,7 @@ function SVGPolygonElement(_doc) { function SVGTextContentElement(_doc) { /*readonly SVGAnimatedLength*/ this.textLength = new SVGAnimatedLength(); - /*readonly SVGAnimatedEnumeration*/ this.lengthAdjust = base("$SVGAnimatedEnumeration").up("$1"); + /*readonly SVGAnimatedEnumeration*/ this.lengthAdjust = base("$SVGAnimatedEnumeration").up(); this.addEventListener("DOMNodeInserted", function(evt){ var tar = evt.target, cur = evt.currentTarget, @@ -4494,7 +4494,7 @@ function SVGMarkerElement(_doc) { var sl = SVGAnimatedLength; /*readonly SVGAnimatedLength*/ this.refX = new sl(); /*readonly SVGAnimatedLength*/ this.refY = new sl(); - /*readonly SVGAnimatedEnumeration*/ this.markerUnits = base("$SVGAnimatedEnumeration").up("$1"); + /*readonly SVGAnimatedEnumeration*/ this.markerUnits = base("$SVGAnimatedEnumeration").up(); this.markerUnits.baseVal = /*SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH*/ 2; /*readonly SVGAnimatedLength*/ this.markerWidth = new sl(); /*readonly SVGAnimatedLength*/ this.markerHeight = new sl(); @@ -4503,7 +4503,7 @@ function SVGMarkerElement(_doc) { this.markerWidth.baseVal.newValueSpecifiedUnits(1, 3); this.markerHeight.baseVal.newValueSpecifiedUnits(1, 3); sl = void 0; - /*readonly SVGAnimatedEnumeration*/ this.orientType = base("$SVGAnimatedEnumeration").up("$1"); + /*readonly SVGAnimatedEnumeration*/ this.orientType = base("$SVGAnimatedEnumeration").up(); this.orientType.baseVal = /*SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE*/ 2; /*readonly SVGAnimatedAngle*/ this.orientAngle = new SVGAnimatedAngle(); //SVGFitToViewBoxのインターフェースはhttp://www.w3.org/2000/svgsvgオブジェクトで代用 @@ -4678,9 +4678,9 @@ base("$CSSStyleRule").$SVGCSSRule.up("$SVGColorProfileRule").mix( { function SVGGradientElement() { SVGURIReference.apply(this); - /*readonly SVGAnimatedEnumeration*/ this.gradientUnits = base("$SVGAnimatedEnumeration").up("$1"); + /*readonly SVGAnimatedEnumeration*/ this.gradientUnits = base("$SVGAnimatedEnumeration").up(); /*readonly SVGAnimatedTransformList*/ this.gradientTransform = new SVGAnimatedTransformList(); - /*readonly SVGAnimatedEnumeration*/ this.spreadMethod = base("$SVGAnimatedEnumeration").up("$1"); + /*readonly SVGAnimatedEnumeration*/ this.spreadMethod = base("$SVGAnimatedEnumeration").up(); this.addEventListener("DOMNodeInsertedIntoDocument", function(evt) { var grad = evt.target, ele = evt._tar, @@ -4890,7 +4890,7 @@ function SVGRadialGradientElement(_doc) { SVGRadialGradientElement.prototype = Object._create(SVGGradientElement); function SVGStopElement() { - /*readonly SVGAnimatedNumber*/ this.offset = base("$SVGAnimatedNumber").up("$1"); + /*readonly SVGAnimatedNumber*/ this.offset = base("$SVGAnimatedNumber").up(); this.addEventListener("DOMAttrModified", function(evt) { if (evt.attrName === "offset") { var env = evt.newValue; @@ -4906,8 +4906,8 @@ function SVGStopElement() { function SVGPatternElement() { var sl = SVGAnimatedLength; - /*readonly SVGAnimatedEnumeration*/ this.patternUnits = base("$SVGAnimatedEnumeration").up("$1"); - /*readonly SVGAnimatedEnumeration*/ this.patternContentUnits = base("$SVGAnimatedEnumeration").up("$1"); + /*readonly SVGAnimatedEnumeration*/ this.patternUnits = base("$SVGAnimatedEnumeration").up(); + /*readonly SVGAnimatedEnumeration*/ this.patternContentUnits = base("$SVGAnimatedEnumeration").up(); /*readonly SVGAnimatedTransformList*/ this.patternTransform = new SVGAnimatedTransformList(); /*readonly SVGAnimatedLength*/ this.x = new sl(); /*readonly SVGAnimatedLength*/ this.y = new sl(); @@ -4922,13 +4922,13 @@ function SVGPatternElement() { }; function SVGClipPathElement() { - /*readonly SVGAnimatedEnumeration*/ this.clipPathUnits = base("$SVGAnimatedEnumeration").up("$1"); + /*readonly SVGAnimatedEnumeration*/ this.clipPathUnits = base("$SVGAnimatedEnumeration").up(); }; function SVGMaskElement() { var sl = SVGAnimatedLength; - /*readonly SVGAnimatedEnumeration*/ this.maskUnits = base("$SVGAnimatedEnumeration").up("$1"); - /*readonly SVGAnimatedEnumeration*/ this.maskContentUnits = base("$SVGAnimatedEnumeration").up("$1"); + /*readonly SVGAnimatedEnumeration*/ this.maskUnits = base("$SVGAnimatedEnumeration").up(); + /*readonly SVGAnimatedEnumeration*/ this.maskContentUnits = base("$SVGAnimatedEnumeration").up(); /*readonly SVGAnimatedLength*/ this.x = new sl(); /*readonly SVGAnimatedLength*/ this.y = new sl(); /*readonly SVGAnimatedLength*/ this.width = new sl(); @@ -4938,15 +4938,15 @@ function SVGMaskElement() { function SVGFilterElement() { var sl = SVGAnimatedLength; - /*readonly SVGAnimatedEnumeration*/ this.filterUnits = base("$SVGAnimatedEnumeration").up("$1"); - /*readonly SVGAnimatedEnumeration*/ this.primitiveUnits = base("$SVGAnimatedEnumeration").up("$1"); + /*readonly SVGAnimatedEnumeration*/ this.filterUnits = base("$SVGAnimatedEnumeration").up(); + /*readonly SVGAnimatedEnumeration*/ this.primitiveUnits = base("$SVGAnimatedEnumeration").up(); /*readonly SVGAnimatedLength*/ this.x = new sl(); /*readonly SVGAnimatedLength*/ this.y = new sl(); /*readonly SVGAnimatedLength*/ this.width = new sl(); /*readonly SVGAnimatedLength*/ this.height = new sl(); sl = void 0; - /*readonly SVGAnimatedInteger*/ this.filterResX = base("$SVGAnimatedInteger").up("$1"); - /*readonly SVGAnimatedInteger*/ this.filterResY = base("$SVGAnimatedInteger").up("$1"); + /*readonly SVGAnimatedInteger*/ this.filterResX = base("$SVGAnimatedInteger").up(); + /*readonly SVGAnimatedInteger*/ this.filterResY = base("$SVGAnimatedInteger").up(); SVGURIReference.apply(this); //setFilterRes (/*unsigned long*/ filterResX,/*unsigned long*/ filterResY ); }; @@ -4959,15 +4959,15 @@ function SVGFilterPrimitiveStandardAttributes(ele) { /*readonly SVGAnimatedLength*/ this.y = new sl(); /*readonly SVGAnimatedLength*/ this.width = new sl(); /*readonly SVGAnimatedLength*/ this.height = new sl(); - /*readonly SVGAnimatedString*/ this.result = base("$SVGAnimatedString").up("$1"); + /*readonly SVGAnimatedString*/ this.result = base("$SVGAnimatedString").up(); sl = void 0; }; SVGFilterPrimitiveStandardAttributes.prototype = Object._create(SVGStylable); function SVGFEBlendElement() { - /*readonly SVGAnimatedString*/ this.in1 = base("$SVGAnimatedString").up("$1"); - /*readonly SVGAnimatedString*/ this.in2 = base("$SVGAnimatedString").up("$1"); - /*readonly SVGAnimatedEnumeration*/ this.mode = base("$SVGAnimatedEnumeration").up("$1"); + /*readonly SVGAnimatedString*/ this.in1 = base("$SVGAnimatedString").up(); + /*readonly SVGAnimatedString*/ this.in2 = base("$SVGAnimatedString").up(); + /*readonly SVGAnimatedEnumeration*/ this.mode = base("$SVGAnimatedEnumeration").up(); this._fpsa = SVGFilterPrimitiveStandardAttributes(this); }; // Blend Mode Types @@ -4979,9 +4979,9 @@ function SVGFEBlendElement() { /*unsigned short SVGFEBlendElement.SVG_FEBLEND_MODE_LIGHTEN = 5;*/ function SVGFEGaussianBlurElement() { - /*readonly SVGAnimatedString*/ this.in1 = base("$SVGAnimatedString").up("$1"); - /*readonly SVGAnimatedNumber*/ this.stdDeviationX = base("$SVGAnimatedNumber").up("$1"); - /*readonly SVGAnimatedNumber*/ this.stdDeviationY = base("$SVGAnimatedNumber").up("$1"); + /*readonly SVGAnimatedString*/ this.in1 = base("$SVGAnimatedString").up(); + /*readonly SVGAnimatedNumber*/ this.stdDeviationX = base("$SVGAnimatedNumber").up(); + /*readonly SVGAnimatedNumber*/ this.stdDeviationY = base("$SVGAnimatedNumber").up(); this._fpsa = SVGFilterPrimitiveStandardAttributes(this); }; /*void*/ SVGFEGaussianBlurElement.prototype.setStdDeviation = function(/*float*/ stdDeviationX, /*float*/ stdDeviationY ) { @@ -4997,7 +4997,7 @@ function SVGCursorElement() { function SVGAElement(_doc) { this._tar = _doc.createElement("a"); _doc = void 0; - /*readonly SVGAnimatedString*/ this.target = base("$SVGAnimatedString").up("$1"); + /*readonly SVGAnimatedString*/ this.target = base("$SVGAnimatedString").up(); this.target.baseVal = "_self"; this.addEventListener("DOMAttrModified", function(evt){ var tar = evt.target; @@ -5112,7 +5112,7 @@ function SVGAElement(_doc) { }; function SVGViewElement() { - /*readonly SVGStringList*/ this.viewTarget = base("$SVGStringList").up("$1"); + /*readonly SVGStringList*/ this.viewTarget = base("$SVGStringList").up(); //SVGFitToViewBoxのインターフェースを用いる /*readonly SVGAnimatedRect*/ this.viewBox = new SVGAnimatedRect(); /*readonly SVGAnimatedPreserveAspectRatio*/ this.preserveAspectRatio = new SVGAnimatedPreserveAspectRatio(); @@ -5171,10 +5171,10 @@ function SVGScriptElement() { base("$event").up("SVGEvents"); base("$event").SVGZoomEvents = base("$event").UIEvents.up("SVGZoomEvents").on("itnitialize", function() { - /*readonly SVGRect*/ this.zoomRectScreen = base("$SVGRect").up("$1"); + /*readonly SVGRect*/ this.zoomRectScreen = base("$SVGRect").up(); /*readonly float*/ this.previousScale = this.newScale = 1; - /*readonly SVGPoint*/ this.previousTranslate = base("$SVGPoint").up("$1"); - /*readonly SVGPoint*/ this.newTranslate = base("$SVGPoint").up("$1"); + /*readonly SVGPoint*/ this.previousTranslate = base("$SVGPoint").up(); + /*readonly SVGPoint*/ this.newTranslate = base("$SVGPoint").up(); }); function SVGAnimationElement() { @@ -5698,7 +5698,7 @@ function SVGAnimateElement(){ ttr = tar.targetElement, tta = ttr[attrName]; /*tar.valuesのリスト: ["12px", "13px"] - *tar._valueList: [(base("$SVGPoint").up("$1")), (base("$SVGPoint").up("$1"))] + *tar._valueList: [(base("$SVGPoint").up()), (base("$SVGPoint").up())] * tar.valuesを機械が理解できるように変換したものがtar._valueList *この_valueListプロパティはアニメの際に使うので、_valuesプロパティはアニメ中に使わないことに注意 */ @@ -5967,7 +5967,7 @@ function SVGAnimateMotionElement(){ /*アニメーション中に変化すべき値をanimValプロパティに入力して、 *baseValと同じような値に設定。 */ - trans.animVal = base("$SVGStringList").$SVGTransformList.up("$1");; + trans.animVal = base("$SVGStringList").$SVGTransformList.up();; if (trans.baseVal.numberOfItems !== 0) { trans.animVal.initialize(trans.baseVal.createSVGTransformFromMatrix(trans.baseVal.consolidate().matrix)); } else { @@ -6179,7 +6179,7 @@ function SVGAnimateTransformElement() { /*アニメーション中に変化すべき値をanimValプロパティに入力して、 *baseValと同じような値に設定。 */ - trans.animVal = base("$SVGStringList").$SVGTransformList.up("$1"); + trans.animVal = base("$SVGStringList").$SVGTransformList.up(); if (trans.baseVal.numberOfItems !== 0) { trans.animVal.initialize(trans.baseVal.createSVGTransformFromMatrix(trans.baseVal.getItem(0).matrix)); }