[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/khtml-svg
From:       Rob Buis <buis () kde ! org>
Date:       2006-04-01 14:02:09
Message-ID: 1143900129.423186.6338.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 525269 by buis:

Added SVGUseElementImpl, unfortunately still some problems...


 M  +0 -3      svg/CONVERSION-TODO-LIST  
 M  +1 -0      svg/Makefile.am  
 M  +14 -0     svg/SVGGElementImpl.cpp  
 M  +10 -0     svg/SVGGElementImpl.h  
 M  +1 -1      svg/SVGURIReferenceImpl.cpp  
 A             svg/SVGUseElementImpl.cpp   [License: LGPL (v2+) (wrong address)]
 A             svg/SVGUseElementImpl.h   [License: LGPL (v2+) (wrong address)]
 M  +6 -0      xml/dom_docimpl.cpp  


--- branches/work/khtml-svg/svg/CONVERSION-TODO-LIST #525268:525269
@@ -33,9 +33,6 @@
 SVGScriptElementImpl.cpp
 SVGScriptElementImpl.h
 
-SVGUseElementImpl.cpp
-SVGUseElementImpl.h
-
 SVGSolidColorElementImpl.cpp
 SVGSolidColorElementImpl.h
 
--- branches/work/khtml-svg/svg/Makefile.am #525268:525269
@@ -32,4 +32,5 @@
 						 SVGRadialGradientElementImpl.cpp SVGDOMImplementationImpl.cpp \
 						 SVGAElementImpl.cpp SVGClipPathElementImpl.cpp \
 						 SVGTitleElementImpl.cpp SVGStyleElementImpl.cpp \
+						 SVGUseElementImpl.cpp \
 						 svgpathparser.cpp KSVGPainterFactory.cpp
--- branches/work/khtml-svg/svg/SVGGElementImpl.cpp #525268:525269
@@ -59,4 +59,18 @@
     return KRenderingDevice::self()->createContainer(arena, style, this);
 }
 
+SVGDummyElementImpl::SVGDummyElementImpl(DOM::DocumentPtr *doc)
+: SVGGElementImpl(doc)
+{
+}
+
+SVGDummyElementImpl::~SVGDummyElementImpl()
+{
+}
+
+DOM::NodeImpl::Id SVGDummyElementImpl::id() const
+{
+    return SVGID_G + 1000;
+}
+
 // vim:ts=4:noet
--- branches/work/khtml-svg/svg/SVGGElementImpl.h #525268:525269
@@ -50,6 +50,16 @@
         virtual bool rendererIsNeeded(khtml::RenderStyle *style) { return \
                SVGStyledElementImpl::checkIfRendererIsNeeded(style); }
         virtual khtml::RenderObject *createRenderer(khtml::RenderArena *arena, \
khtml::RenderStyle *style);  };
+
+    class SVGDummyElementImpl : public SVGGElementImpl
+    {
+    public:
+        SVGDummyElementImpl(DOM::DocumentPtr *doc);
+        virtual ~SVGDummyElementImpl();
+
+        // khtml DOM Integration
+        virtual DOM::NodeImpl::Id id() const;
+	};
 };
 
 #endif
--- branches/work/khtml-svg/svg/SVGURIReferenceImpl.cpp #525268:525269
@@ -49,7 +49,7 @@
 
 	switch(attr->id())
 	{
-		case SVGATTR_HREF:
+		case ATTR_HREF:
 		{
 			int ignoreException;
 			href()->setBaseVal(value.implementation(), ignoreException);
--- branches/work/khtml-svg/xml/dom_docimpl.cpp #525268:525269
@@ -89,6 +89,7 @@
 #include "svg/SVGAElementImpl.h"
 #include "svg/SVGGElementImpl.h"
 #include "svg/SVGSVGElementImpl.h"
+#include "svg/SVGUseElementImpl.h"
 #include "svg/SVGStopElementImpl.h"
 #include "svg/SVGDefsElementImpl.h"
 #include "svg/SVGDescElementImpl.h"
@@ -1128,6 +1129,11 @@
             n = new KSVG::SVGStyleElementImpl(docPtr());
             break;
         }
+        case SVGID_USE:
+        {
+            n = new KSVG::SVGUseElementImpl(docPtr());
+            break;
+        }
         default:
             break;
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic