svnno****@sourc*****
svnno****@sourc*****
2010年 2月 1日 (月) 20:29:27 JST
Revision: 1616
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1616
Author: dhrname
Date: 2010-02-01 20:29:27 +0900 (Mon, 01 Feb 2010)
Log Message:
-----------
Modified Paths:
--------------
branches/DOM/org/w3c/dom/svg.js
Modified: branches/DOM/org/w3c/dom/svg.js
===================================================================
--- branches/DOM/org/w3c/dom/svg.js 2010-01-31 13:23:04 UTC (rev 1615)
+++ branches/DOM/org/w3c/dom/svg.js 2010-02-01 11:29:27 UTC (rev 1616)
@@ -882,36 +882,36 @@
/*float*/ SVGSVGElement.prototype.getCurrentTime = function(){
return (this._currentTime);
-}
+};
/*void*/ SVGSVGElement.prototype.setCurrentTime = function(/*float*/ seconds ){
this._currentTime = seconds;
-}
-/*SVGNumber*/ createSVGNumber = function(){
+};
+/*SVGNumber*/ SVGSVGElement.prototype.createSVGNumber = function(){
var s = new SVGNumber();
s.value = 0;
return s;
-}
-/*SVGLength*/ createSVGLength = function(){
+};
+/*SVGLength*/ SVGSVGElement.prototype.createSVGLength = function(){
var s = new SVGLength(0);
return s;
-}
-/*SVGPoint*/ createSVGPoint = function(){
+};
+/*SVGPoint*/ SVGSVGElement.prototype.createSVGPoint = function(){
var s = new SVGPoint();
return s;
-}
-/*SVGMatrix*/ createSVGMatrix = function(){
+};
+/*SVGMatrix*/ SVGSVGElement.prototype.createSVGMatrix = function(){
var s = new SVGMatrix(1,0,0,1,0,0); //単位行列を作成
return s;
-}
-/*SVGRect*/ createSVGRect = function(){
+};
+/*SVGRect*/ SVGSVGElement.prototype.createSVGRect = function(){
var s = new SVGRect();
return s;
-}
-/*SVGTransform*/ createSVGTransform = function(){
+};
+/*SVGTransform*/ SVGSVGElement.prototype.createSVGTransform = function(){
var s = this.createSVGTransformFromMatrix(this.createSVGMatrix());
return s;
-}
-/*SVGTransform*/ createSVGTransformFromMatrix = function(/*SVGMatrix*/ matrix )){
+};
+/*SVGTransform*/ SVGSVGElement.prototype.createSVGTransformFromMatrix = function(/*SVGMatrix*/ matrix )){
var s = new SVGTransform();
s.setMatrix(matrix);
return s;
@@ -1755,46 +1755,44 @@
ele.coordsize = w + " " + h;
ttm = preCom = x = y = x0 = y0 = dx = dy = tma = tmb = tmc = tmd = tme = tmf = w = h = null;
} catch(e) {stlog.add(e,372);}
-
};
-with(SVGPathElement.prototype) {
- /*float*/ getTotalLength = function() {
+ /*float*/ SVGPathElement.prototype.getTotalLength = function() {
return (this.pathLength.baseVal.value);
};
- /*SVGPoint*/ getPointAtLength = function(/*float*/ distance ) {
+ /*SVGPoint*/ SVGPathElement.prototype.getPointAtLength = function(/*float*/ distance ) {
};
- /*unsigned long*/ getPathSegAtLength = function(/*float*/ distance ) {
+ /*unsigned long*/ SVGPathElement.prototype.getPathSegAtLength = function(/*float*/ distance ) {
};
- /*SVGPathSegClosePath*/ createSVGPathSegClosePath = function() {
+ /*SVGPathSegClosePath*/ SVGPathElement.prototype.createSVGPathSegClosePath = function() {
return (new SVGPathSegClosePath());
};
- /*SVGPathSegMovetoAbs*/ createSVGPathSegMovetoAbs = function(/*float*/ x, /*float*/ y ) {
+ /*SVGPathSegMovetoAbs*/ SVGPathElement.prototype.createSVGPathSegMovetoAbs = function(/*float*/ x, /*float*/ y ) {
var s = new SVGPathSegMovetoAbs();
s.x = x;
s.y = y;
return s;
};
- /*SVGPathSegMovetoRel*/ createSVGPathSegMovetoRel = function(/*float*/ x, /*float*/ y ) {
+ /*SVGPathSegMovetoRel*/ SVGPathElement.prototype.createSVGPathSegMovetoRel = function(/*float*/ x, /*float*/ y ) {
var s = new SVGPathSegMovetoRel();
s.x = x;
s.y = y;
return s;
};
- /*SVGPathSegLinetoAbs*/ createSVGPathSegLinetoAbs = function(/*float*/ x, /*float*/ y ) {
+ /*SVGPathSegLinetoAbs*/ SVGPathElement.prototype.createSVGPathSegLinetoAbs = function(/*float*/ x, /*float*/ y ) {
var s = new SVGPathSegLinetoAbs();
s.x = x;
s.y = y;
return s;
};
- /*SVGPathSegLinetoRel*/ createSVGPathSegLinetoRel = function(/*float*/ x, /*float*/ y ) {
+ /*SVGPathSegLinetoRel*/ SVGPathElement.prototype.createSVGPathSegLinetoRel = function(/*float*/ x, /*float*/ y ) {
var s = new SVGPathSegLinetoRel();
s.x = x;
s.y = y;
return s;
};
- /*SVGPathSegCurvetoCubicAbs*/ createSVGPathSegCurvetoCubicAbs = function(/*float*/ x, /*float*/ y, /*float*/ x1, /*float*/ y1, /*float*/ x2, /*float*/ y2 ) {
+ /*SVGPathSegCurvetoCubicAbs*/ SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs = function(/*float*/ x, /*float*/ y, /*float*/ x1, /*float*/ y1, /*float*/ x2, /*float*/ y2 ) {
var s = new SVGPathSegCurvetoCubicAbs();
s.x = x;
s.y = y;
@@ -1804,7 +1802,7 @@
s.y2 = y2;
return s;
};
- /*SVGPathSegCurvetoCubicRel*/ createSVGPathSegCurvetoCubicRel = function(/*float*/ x, /*float*/ y, /*float*/ x1, /*float*/ y1, /*float*/ x2, /*float*/ y2 ) {
+ /*SVGPathSegCurvetoCubicRel*/ SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel = function(/*float*/ x, /*float*/ y, /*float*/ x1, /*float*/ y1, /*float*/ x2, /*float*/ y2 ) {
var s = new SVGPathSegCurvetoCubicRel();
s.x = x;
s.y = y;
@@ -1814,7 +1812,7 @@
s.y2 = y2;
return s;
};
- /*SVGPathSegCurvetoQuadraticAbs*/ createSVGPathSegCurvetoQuadraticAbs = function(/*float*/ x, /*float*/ y, /*float*/ x1, /*float*/ y1 ) {
+ /*SVGPathSegCurvetoQuadraticAbs*/ SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs = function(/*float*/ x, /*float*/ y, /*float*/ x1, /*float*/ y1 ) {
var s = new SVGPathSegCurvetoQuadraticAbs();
s.x = x;
s.y = y;
@@ -1822,7 +1820,7 @@
s.y1 = y1;
return s;
};
- /*SVGPathSegCurvetoQuadraticRel*/ createSVGPathSegCurvetoQuadraticRel = function(/*float*/ x, /*float*/ y, /*float*/ x1, /*float*/ y1 ) {
+ /*SVGPathSegCurvetoQuadraticRel*/ SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel = function(/*float*/ x, /*float*/ y, /*float*/ x1, /*float*/ y1 ) {
var s = new SVGPathSegCurvetoQuadraticRel();
s.x = x;
s.y = y;
@@ -1830,7 +1828,7 @@
s.y1 = y1;
return s;
};
- /*SVGPathSegArcAbs*/ createSVGPathSegArcAbs = function(/*float*/ x, /*float*/ y, /*float*/ r1, /*float*/ r2, /*float*/ angle, /*boolean*/ largeArcFlag, /*boolean*/ sweepFlag ) {
+ /*SVGPathSegArcAbs*/ SVGPathElement.prototype.createSVGPathSegArcAbs = function(/*float*/ x, /*float*/ y, /*float*/ r1, /*float*/ r2, /*float*/ angle, /*boolean*/ largeArcFlag, /*boolean*/ sweepFlag ) {
var s = new SVGPathSegArcAbs();
s.x = x;
s.y = y;
@@ -1841,7 +1839,7 @@
s.sweepFlag = sweepFlag;
return s;
};
- /*SVGPathSegArcRel*/ createSVGPathSegArcRel = function(/*float*/ x, /*float*/ y, /*float*/ r1, /*float*/ r2, /*float*/ angle, in boolean largeArcFlag, in boolean sweepFlag ) {
+ /*SVGPathSegArcRel*/ SVGPathElement.prototype.createSVGPathSegArcRel = function(/*float*/ x, /*float*/ y, /*float*/ r1, /*float*/ r2, /*float*/ angle, in boolean largeArcFlag, in boolean sweepFlag ) {
var s = new SVGPathSegArcRel();
s.x = x;
s.y = y;
@@ -1852,27 +1850,27 @@
s.sweepFlag = sweepFlag;
return s;
};
- /*SVGPathSegLinetoHorizontalAbs*/ createSVGPathSegLinetoHorizontalAbs = function(/*float*/ x ) {
+ /*SVGPathSegLinetoHorizontalAbs*/ SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs = function(/*float*/ x ) {
var s = new SVGPathSegLinetoHorizontalAbs();
s.x = x;
return s;
};
- /*SVGPathSegLinetoHorizontalRel*/ createSVGPathSegLinetoHorizontalRel = function(/*float*/ x ) {
+ /*SVGPathSegLinetoHorizontalRel*/ SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel = function(/*float*/ x ) {
var s = new SVGPathSegLinetoHorizontalRel();
s.x = x;
return s;
};
- /*SVGPathSegLinetoVerticalAbs*/ createSVGPathSegLinetoVerticalAbs = function(/*float*/ y ) {
+ /*SVGPathSegLinetoVerticalAbs*/ SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs = function(/*float*/ y ) {
var s = new SVGPathSegLinetoVerticalAbs();
s.y = y;
return s;
};
- /*SVGPathSegLinetoVerticalRel*/ createSVGPathSegLinetoVerticalRel = function(/*float*/ y ) {
+ /*SVGPathSegLinetoVerticalRel*/ SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel = function(/*float*/ y ) {
var s = new SVGPathSegLinetoVerticalRel();
s.y = y;
return s;
};
- /*SVGPathSegCurvetoCubicSmoothAbs*/ createSVGPathSegCurvetoCubicSmoothAbs = function(/*float*/ x, /*float*/ y, /*float*/ x2, /*float*/ y2 ) {
+ /*SVGPathSegCurvetoCubicSmoothAbs*/ SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs = function(/*float*/ x, /*float*/ y, /*float*/ x2, /*float*/ y2 ) {
var s = new SVGPathSegCurvetoCubicSmoothAbs();
s.x = x;
s.y = y;
@@ -1880,7 +1878,7 @@
s.y2 = y2;
return s;
};
- /*SVGPathSegCurvetoCubicSmoothRel*/ createSVGPathSegCurvetoCubicSmoothRel = function(/*float*/ x, /*float*/ y, /*float*/ x2, /*float*/ y2 ) {
+ /*SVGPathSegCurvetoCubicSmoothRel*/ SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel = function(/*float*/ x, /*float*/ y, /*float*/ x2, /*float*/ y2 ) {
var s = new SVGPathSegCurvetoCubicSmoothRel();
s.x = x;
s.y = y;
@@ -1888,19 +1886,18 @@
s.y2 = y2;
return s;
};
- /*SVGPathSegCurvetoQuadraticSmoothAbs*/ createSVGPathSegCurvetoQuadraticSmoothAbs = function(/*float*/ x, /*float*/ y ) {
+ /*SVGPathSegCurvetoQuadraticSmoothAbs*/ SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs = function(/*float*/ x, /*float*/ y ) {
var s = new SVGPathSegCurvetoQuadraticSmoothAbs();
s.x = x;
s.y = y;
return s;
};
- /*SVGPathSegCurvetoQuadraticSmoothRel*/ createSVGPathSegCurvetoQuadraticSmoothRel = function(/*float*/ x, /*float*/ y ) {
+ /*SVGPathSegCurvetoQuadraticSmoothRel*/ SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel = function(/*float*/ x, /*float*/ y ) {
var s = new SVGPathSegCurvetoQuadraticSmoothRel();
s.x = x;
s.y = y;
return s;
};
-};
function SVGRectElement() {
SVGElement.apply(this, arguments);
@@ -2027,13 +2024,13 @@
/*long*/ SVGTextContentElement.prototype.getNumberOfChars = function() {
return (this.tar.innerText.length);
};
-/*float*/ SVGTextContentElement.prototype.getComputedTextLength () {
+/*float*/ SVGTextContentElement.prototype.getComputedTextLength = function() {
};
-/*float*/ SVGTextContentElement.prototype.getSubStringLength (/*unsigned long*/ charnum, /*unsigned long*/ nchars ) {
+/*float*/ SVGTextContentElement.prototype.getSubStringLength = function(/*unsigned long*/ charnum, /*unsigned long*/ nchars ) {
}
-/*SVGPoint*/ SVGTextContentElement.prototype.getStartPositionOfChar (/*unsigned long*/ charnum ) {
+/*SVGPoint*/ SVGTextContentElement.prototype.getStartPositionOfChar = function (/*unsigned long*/ charnum ) {
if (charnum > this.getNumberOfChars() || charnum < 0) {
return (new DOMException(DOMException.INDEX_SIZE_ERR));
} else {
@@ -2042,7 +2039,7 @@
fontSize = fontSize * Math.sqrt(Math.abs(this.getCTM().determinant()));
}
};
-/*SVGPoint*/ SVGTextContentElement.prototype.getEndPositionOfChar (/*unsigned long*/ charnum ) {
+/*SVGPoint*/ SVGTextContentElement.prototype.getEndPositionOfChar = function(/*unsigned long*/ charnum ) {
if (charnum > this.getNumberOfChars() || charnum < 0) {
return (new DOMException(DOMException.INDEX_SIZE_ERR));
} else {
@@ -2055,16 +2052,16 @@
return s;
}
};
-/*SVGRect*/ SVGTextContentElement.prototype.getExtentOfChar (/*unsigned long*/ charnum ) {
+/*SVGRect*/ SVGTextContentElement.prototype.getExtentOfChar = function(/*unsigned long*/ charnum ) {
};
-/*float*/ SVGTextContentElement.prototype.getRotationOfChar (/*unsigned long*/ charnum ) {
+/*float*/ SVGTextContentElement.prototype.getRotationOfChar = function(/*unsigned long*/ charnum ) {
};
-/*long*/ SVGTextContentElement.prototype.getCharNumAtPosition (/*SVGPoint*/ point ) {
+/*long*/ SVGTextContentElement.prototype.getCharNumAtPosition = function(/*SVGPoint*/ point ) {
};
-/*void*/ SVGTextContentElement.prototype.selectSubString (/*unsigned long*/ charnum,/*unsigned long*/ nchars ) {
+/*void*/ SVGTextContentElement.prototype.selectSubString = function(/*unsigned long*/ charnum,/*unsigned long*/ nchars ) {
};
@@ -2107,8 +2104,7 @@
/*readonly SVGAnimatedLength*/ this.startOffset;
/*readonly SVGAnimatedEnumeration*/ this.method;
/*readonly SVGAnimatedEnumeration*/ this.spacing;
- this._xlink = new SVGURIReference(this);
-
+ this._xlink = new SVGURIReference(this);
return this;
};
SVGTextPathElement.constructor = SVGTextContentElement;
@@ -2470,124 +2466,145 @@
SVGAnimationElement.constructor = SVGElement;
SVGAnimationElement.prototype = new SVGElement();
- float getStartTime ( );
- float getCurrentTime ( );
- float getSimpleDuration ( )
- raises( DOMException );
-function SVGAnimateElement : SVGAnimationElement {
- SVGElement.apply(this, arguments);
+/*float*/ SVGAnimationElement.prototype.getStartTime = function(){
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+/*float*/ SVGAnimationElement.prototype.getCurrentTime = function(){
+};
+/*float*/ SVGAnimationElement.prototype.getSimpleDuration = function(){
+};
+ //raises( DOMException );
+function SVGAnimateElement(){
+ SVGAnimationElement.apply(this, arguments);
+ return this;
+};
+SVGAnimateElement.constructor = SVGAnimationElement;
+SVGAnimateElement.prototype = new SVGAnimationElement();
-function SVGSetElement : SVGAnimationElement {
- SVGElement.apply(this, arguments);
+function SVGSetElement(){
+ SVGAnimationElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGSetElement.constructor = SVGAnimationElement;
+SVGSetElement.prototype = new SVGAnimationElement();
-function SVGAnimateMotionElement : SVGAnimationElement {
- SVGElement.apply(this, arguments);
+function SVGAnimateMotionElement(){
+ SVGAnimationElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGAnimateMotionElement.constructor = SVGAnimationElement;
+SVGAnimateMotionElement.prototype = new SVGAnimationElement();
function SVGMPathElement() /* :
SVGElement,
SVGURIReference,
SVGExternalResourcesRequired*/ {
SVGElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGMPathElement.constructor = SVGElement;
+SVGMPathElement.prototype = new SVGElement();
-function SVGAnimateColorElement : SVGAnimationElement {
- SVGElement.apply(this, arguments);
+function SVGAnimateColorElement() {
+ SVGAnimationElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGAnimateColorElement.constructor = SVGAnimationElement;
+SVGAnimateColorElement.prototype = new SVGAnimationElement();
-function SVGAnimateTransformElement : SVGAnimationElement {
- SVGElement.apply(this, arguments);
+function SVGAnimateTransformElement() {
+ SVGAnimationElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGAnimateTransformElement.constructor = SVGAnimationElement;
+SVGAnimateTransformElement.prototype = new SVGAnimationElement();
-function SVGFontElement :
+function SVGFontElement() /*:
SVGElement,
SVGExternalResourcesRequired,
- SVGStylable {
+ SVGStylable*/ {
SVGElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGFontElement.constructor = SVGElement;
+SVGFontElement.prototype = new SVGElement();
-function SVGGlyphElement :
+function SVGGlyphElement() /*:
SVGElement,
- SVGStylable {
+ SVGStylable*/ {
SVGElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGGlyphElement.constructor = SVGElement;
+SVGGlyphElement.prototype = new SVGElement();
-function SVGMissingGlyphElement :
+function SVGMissingGlyphElement() /*:
SVGElement,
- SVGStylable {
+ SVGStylable*/ {
SVGElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGMissingGlyphElement.constructor = SVGElement;
+SVGMissingGlyphElement.prototype = new SVGElement();
-function SVGHKernElement : SVGElement {
+function SVGHKernElement() {
SVGElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGHKernElement.constructor = SVGElement;
+SVGHKernElement.prototype = new SVGElement();
-function SVGVKernElement : SVGElement {
+function SVGVKernElement() {
SVGElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGVKernElement.constructor = SVGElement;
+SVGVKernElement.prototype = new SVGElement();
-function SVGFontFaceElement : SVGElement {
+function SVGFontFaceElement() {
SVGElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGFontFaceElement.constructor = SVGElement;
+SVGFontFaceElement.prototype = new SVGElement();
-function SVGFontFaceSrcElement : SVGElement {
+function SVGFontFaceSrcElement() {
SVGElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGFontFaceSrcElement.constructor = SVGElement;
+SVGFontFaceSrcElement.prototype = new SVGElement();
-function SVGFontFaceUriElement : SVGElement {
+function SVGFontFaceUriElement() {
SVGElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGFontFaceUriElement.constructor = SVGElement;
+SVGFontFaceUriElement.prototype = new SVGElement();
-function SVGFontFaceFormatElement : SVGElement {
+function SVGFontFaceFormatElement() {
SVGElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGFontFaceFormatElement.constructor = SVGElement;
+SVGFontFaceFormatElement.prototype = new SVGElement();
-function SVGFontFaceNameElement : SVGElement {
+function SVGFontFaceNameElement() {
SVGElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGFontFaceNameElement.constructor = SVGElement;
+SVGFontFaceNameElement.prototype = new SVGElement();
-function SVGDefinitionSrcElement : SVGElement {
+function SVGDefinitionSrcElement() {
SVGElement.apply(this, arguments);
+ return this;
};
-SVGColorProfileElement.constructor = SVGElement;
-SVGColorProfileElement.prototype = new SVGElement();
+SVGDefinitionSrcElement.constructor = SVGElement;
+SVGDefinitionSrcElement.prototype = new SVGElement();
function SVGMetadataElement : SVGElement {
SVGElement.apply(this, arguments);
+ return this;
};
SVGColorProfileElement.constructor = SVGElement;
SVGColorProfileElement.prototype = new SVGElement();