hillion 2002/06/21 08:52:00 Modified: sources/org/apache/batik/css/engine/sac CSSDescendantSelector.java sources/org/apache/batik/dom/svg SVGOMSVGElement.java Log: SVGSVGElement.createSVGPoint() implementation. Revision Changes Path 1.3 +6 -9 xml-batik/sources/org/apache/batik/css/engine/sac/CSSDescendantSelector.java Index: CSSDescendantSelector.java =================================================================== RCS file: /home/cvs/xml-batik/sources/org/apache/batik/css/engine/sac/CSSDescendantSelector.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- CSSDescendantSelector.java 21 May 2002 09:51:38 -0000 1.2 +++ CSSDescendantSelector.java 21 Jun 2002 15:52:00 -0000 1.3 @@ -45,14 +45,11 @@ public boolean match(Element e, String pseudoE) { ExtendedSelector p = (ExtendedSelector)getAncestorSelector(); for (Node n = e.getParentNode(); n != null; n = n.getParentNode()) { - if (n.getNodeType() == Node.ELEMENT_NODE) { - if (n.getNodeType() == Node.ELEMENT_NODE && - p.match((Element)n, null)) { - return - ((ExtendedSelector)getSimpleSelector()).match(e, - pseudoE); - } - } + if (n.getNodeType() == Node.ELEMENT_NODE && + p.match((Element)n, null)) { + return ((ExtendedSelector)getSimpleSelector()).match(e, + pseudoE); + } } return false; } 1.18 +26 -3 xml-batik/sources/org/apache/batik/dom/svg/SVGOMSVGElement.java Index: SVGOMSVGElement.java =================================================================== RCS file: /home/cvs/xml-batik/sources/org/apache/batik/dom/svg/SVGOMSVGElement.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- SVGOMSVGElement.java 24 Apr 2002 13:01:26 -0000 1.17 +++ SVGOMSVGElement.java 21 Jun 2002 15:52:00 -0000 1.18 @@ -280,9 +280,32 @@ public SVGAngle createSVGAngle ( ) { throw new Error(); } - public SVGPoint createSVGPoint ( ) { - throw new Error(); + + /** + * <b>DOM</b>: Implements {@link SVGSVGElement#createSVGPoint()}. + */ + public SVGPoint createSVGPoint() { + return new SVGPoint() { + float x; + float y; + public float getX() { + return x; + } + public void setX(float x) throws DOMException { + this.x = x; + } + public float getY() { + return y; + } + public void setY(float y) throws DOMException { + this.y = y; + } + public SVGPoint matrixTransform(SVGMatrix matrix) { + throw new RuntimeException("!!! TODO: matrixTransform()"); + } + }; } + public SVGMatrix createSVGMatrix ( ) { throw new Error(); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]