[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/ksvg2
From: Nikolas Zimmermann <wildfox () kde ! org>
Date: 2005-01-30 13:44:35
Message-ID: 20050130134435.C5D1E1D016 () office ! kde ! org
[Download RAW message or body]
CVS commit by wildfox:
grml, add <ellipse> and <line> support, so they are recognized in EcmaScript.
(in the way of fixing 'Game of life')
M +1 -1 TODO 1.23
M +26 -7 ecma/Ecma.cc 1.37
--- kdenonbeta/ksvg2/TODO #1.22:1.23
@@ -2,5 +2,5 @@
------------------------
-- ecma support for: SVGPathSegList
+- ecma support for: SVGPathSegList, SVGSwitchElement
- add missing ecma function calls to SVGSVGElement interface
- add SVGViewSpec interface (currentView() function in SVGSVGElement)
--- kdenonbeta/ksvg2/ecma/Ecma.cc #1.36:1.37
@@ -31,4 +31,5 @@
#include "SVGEvent.h"
#include "SVGColor.h"
+#include "SVGAElement.h"
#include "SVGDocument.h"
#include "SVGGElement.h"
@@ -37,26 +38,27 @@
#include "SVGColorImpl.h"
#include "SVGEventImpl.h"
-#include "SVGAElement.h"
+#include "SVGUseElement.h"
#include "SVGSVGElement.h"
+#include "SVGDescElement.h"
#include "SVGRectElement.h"
#include "SVGDefsElement.h"
#include "SVGStopElement.h"
#include "SVGPathElement.h"
+#include "SVGLineElement.h"
#include "SVGImageElement.h"
-#include "SVGSwitchElement.h"
+#include "SVGTitleElement.h"
#include "SVGDocumentImpl.h"
#include "SVGStyleElement.h"
+#include "SVGSwitchElement.h"
#include "SVGScriptElement.h"
#include "SVGCircleElement.h"
+#include "SVGSymbolElement.h"
+#include "SVGEllipseElement.h"
#include "SVGPolygonElement.h"
#include "SVGPolylineElement.h"
#include "SVGClipPathElement.h"
+#include "SVGStyledElementImpl.h"
#include "SVGLinearGradientElement.h"
#include "SVGRadialGradientElement.h"
-#include "SVGTitleElement.h"
-#include "SVGDescElement.h"
-#include "SVGSymbolElement.h"
-#include "SVGUseElement.h"
-#include "SVGStyledElementImpl.h"
using namespace KSVG;
@@ -138,4 +140,9 @@ KJS::ObjectImp *KDOM::inheritedGetDOMNod
break;
}
+ case ID_ELLIPSE:
+ {
+ ret = SVGEllipseElement(n).bridge(exec);
+ break;
+ }
case ID_POLYLINE:
{
@@ -153,4 +160,11 @@ KJS::ObjectImp *KDOM::inheritedGetDOMNod
break;
}
+ /* TODO: add ecma bindings
+ case ID_SWITCH:
+ {
+ ret = SVGSwitchElement(n).bridge(exec);
+ break;
+ }
+ */
case ID_DEFS:
{
@@ -183,4 +197,9 @@ KJS::ObjectImp *KDOM::inheritedGetDOMNod
break;
}
+ case ID_LINE:
+ {
+ ret = SVGLineElement(n).bridge(exec);
+ break;
+ }
case ID_LINEARGRADIENT:
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic