xmlgraphics-batik-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r569999 - /xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMUseShadowRoot.java
Date Mon, 27 Aug 2007 05:00:39 GMT
Author: cam
Date: Sun Aug 26 22:00:38 2007
New Revision: 569999

URL: http://svn.apache.org/viewvc?rev=569999&view=rev
Log:
Avoid NPE when event-base timing specifiers reference an element by ID
within a <use> shadow tree (bug 41955).

Modified:
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMUseShadowRoot.java

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMUseShadowRoot.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMUseShadowRoot.java?rev=569999&r1=569998&r2=569999&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMUseShadowRoot.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMUseShadowRoot.java Sun Aug
26 22:00:38 2007
@@ -34,7 +34,7 @@
  */
 public class SVGOMUseShadowRoot
         extends AbstractDocumentFragment
-        implements CSSNavigableNode {
+        implements CSSNavigableNode, IdContainer {
 
     /**
      * The parent CSS element.
@@ -75,6 +75,12 @@
      * Sets this node readonly attribute.
      */
     public void setReadonly(boolean v) {
+    }
+
+    // IdContainer ///////////////////////////////////////////////////////////
+
+    public Element getElementById(String id) {
+        return ownerDocument.getChildElementById(this, id);
     }
 
     // CSSNavigableNode //////////////////////////////////////////////////////



Mime
View raw message