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

List:       kde-commits
Subject:    branches/work/khtml-svg/svg
From:       Nikolas Zimmermann <wildfox () kde ! org>
Date:       2006-03-30 20:16:00
Message-ID: 1143749760.415322.24609.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 524627 by wildfox:

Make getElementById() work for SVGElementImpls. Now gradients work out-of-the-box.


 M  +8 -1      SVGElementImpl.cpp  


--- branches/work/khtml-svg/svg/SVGElementImpl.cpp #524626:524627
@@ -21,7 +21,6 @@
 */
 
 #include "misc/hashes.h"
-
 #include "xml/dom_docimpl.h"
 
 #include "SVGElementImpl.h"
@@ -129,6 +128,14 @@
 
     switch(attr->id())
     {
+        case ATTR_ID:
+        {
+            // unique id
+            setHasID();
+            setChanged(); // in case of a CSS selector on id
+            getDocument()->incDOMTreeVersion();
+            break;
+        }
         case ATTR_ONLOAD:
         case ATTR_ONUNLOAD:
         case ATTR_ONABORT:
[prev in list] [next in list] [prev in thread] [next in thread] 

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