From e26f6ed992af2789358f28a5c4f1a9d66e8ce938 Mon Sep 17 00:00:00 2001 From: kitfox Date: Sat, 23 Feb 2013 03:06:48 +0000 Subject: Clip paths now only applied in tag where it is requested. git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@147 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b --- src/main/java/com/kitfox/svg/RenderableElement.java | 2 +- src/main/java/com/kitfox/svg/SVGElement.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/com/kitfox/svg/RenderableElement.java b/src/main/java/com/kitfox/svg/RenderableElement.java index b27a291..0928454 100644 --- a/src/main/java/com/kitfox/svg/RenderableElement.java +++ b/src/main/java/com/kitfox/svg/RenderableElement.java @@ -127,7 +127,7 @@ abstract public class RenderableElement extends TransformableElement // StyleAttribute styleAttrib = getStyle("clip-path", false); Shape clipPath = null; int clipPathUnits = ClipPath.CP_USER_SPACE_ON_USE; - if (getStyle(styleAttrib.setName("clip-path"))) + if (getStyle(styleAttrib.setName("clip-path"), false)) { URI uri = styleAttrib.getURIValue(getXMLBase()); if (uri != null) diff --git a/src/main/java/com/kitfox/svg/SVGElement.java b/src/main/java/com/kitfox/svg/SVGElement.java index 2ec7ae3..e1bdb31 100644 --- a/src/main/java/com/kitfox/svg/SVGElement.java +++ b/src/main/java/com/kitfox/svg/SVGElement.java @@ -547,7 +547,7 @@ abstract public class SVGElement implements Serializable * @param attrib - Attribute to write style data to. Must have it's name * set to the name of the style being queried. * @param recursive - If true and this object does not contain the - * named style attribute, checks attributes of parents abck to root until + * named style attribute, checks attributes of parents back to root until * one found. */ public boolean getStyle(StyleAttribute attrib, boolean recursive) throws SVGException -- cgit v1.2.3-55-g7522